forked from blue/squawk
26 lines
439 B
C
26 lines
439 B
C
|
#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;
|
||
|
|
||
|
private:
|
||
|
int lastWidth;
|
||
|
};
|
||
|
|
||
|
#endif // UI_SETTINGSLIST_H
|