forked from blue/squawk
27 lines
503 B
C++
27 lines
503 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;
|
|
QRect visualRect(const QModelIndex & index) const override;
|
|
|
|
private:
|
|
int lastWidth;
|
|
};
|
|
|
|
#endif // UI_SETTINGSLIST_H
|