1
0
forked from blue/squawk
squawk/ui/widgets/settings/settingslist.h

27 lines
503 B
C
Raw Normal View History

2022-01-16 19:54:57 +00:00
#ifndef UI_SETTINGSLIST_H
#define UI_SETTINGSLIST_H
#include <QListWidget>
#include <QResizeEvent>
/**
* @todo write docs
*/
class SettingsList : public QListWidget
{
Q_OBJECT
public:
SettingsList(QWidget* parent = nullptr);
~SettingsList();
protected:
QStyleOptionViewItem viewOptions() const override;
void resizeEvent(QResizeEvent * event) override;
QRect visualRect(const QModelIndex & index) const override;
2022-01-16 19:54:57 +00:00
private:
int lastWidth;
};
#endif // UI_SETTINGSLIST_H