Enable setting min and max list size

This commit is contained in:
WarmUpTill
2026-04-02 19:04:56 +02:00
committed by WarmUpTill
parent d15a324137
commit aadedbb610
2 changed files with 27 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ public:
ListEditor(QWidget *parent = nullptr, bool reorder = true);
int count() const { return _list->count(); };
void SetPlaceholderText(const QString &text);
void SetMinListHeight(int);
void SetMaxListHeight(int);
protected:
void showEvent(QShowEvent *);
@@ -38,6 +40,8 @@ protected:
private:
QLabel *_placeholder;
int _minHeight = -1;
int _maxHeight = -1;
};
} // namespace advss