Add DynamicGridWidget Unique Selection

This commit is contained in:
Florian Märkl 2019-06-28 12:29:28 +02:00
parent 264d7523ec
commit 76bf46613e
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
6 changed files with 65 additions and 4 deletions

View file

@ -43,9 +43,12 @@ class DynamicGridWidget : public QWidget
explicit DynamicGridWidget(unsigned int item_width, QWidget *parent = nullptr);
void AddWidget(QWidget *widget);
void RemoveWidget(QWidget *widget);
void AddWidgets(const QList<QWidget *> &widgets);
void SetItemWidth(int item_width) { this->item_width = item_width; UpdateLayoutIfNecessary(); }
void RemoveWidget(QWidget *widget);
void ClearWidgets();
void SetItemWidth(unsigned int item_width) { this->item_width = item_width; UpdateLayoutIfNecessary(); }
};