Resize list to minimum necessary height

This commit is contained in:
WarmUpTill
2021-11-21 15:08:10 +01:00
committed by WarmUpTill
parent 5dfed8ac2a
commit 4d32e921f9
6 changed files with 34 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ protected:
std::shared_ptr<MacroActionRandom> _entryData;
private:
void SetMacroListSize();
MacroSelection *_macroSelection;
QListWidget *_macroList;
QPushButton *_add;

View File

@@ -56,6 +56,8 @@ protected:
std::shared_ptr<MacroActionRun> _entryData;
private:
void SetArgListSize();
FileSelection *_filePath;
QListWidget *_argList;
QPushButton *_addArg;

View File

@@ -55,6 +55,7 @@ void listAddClicked(QListWidget *list, QWidget *newWidget,
QMetaObject::Connection *addHighlight = nullptr);
bool listMoveUp(QListWidget *list);
bool listMoveDown(QListWidget *list);
void setHeightToContentHeight(QListWidget *list);
bool DisplayMessage(const QString &msg, bool question = false);
void DisplayTrayMessage(const QString &title, const QString &msg);
void addSelectionEntry(QComboBox *sel, const char *description,