mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-16 10:03:35 -07:00
Add DynamicGridWidget Unique Selection
This commit is contained in:
parent
264d7523ec
commit
76bf46613e
6 changed files with 65 additions and 4 deletions
|
@ -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(); }
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue