diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-08-05 15:56:39 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-08-05 15:56:39 -0500 |
| commit | 1e4b5d2436df759dead3f7c9da9c928da3ff3047 (patch) | |
| tree | 559a6dac32ffa4d43e4841e8883d380794d6f053 /src/mainwindow.cpp | |
| parent | 94ef8dffbc594585e6a47a79e008ec230934a9fe (diff) | |
Set the names of the toolbar widgets to allow styling
QToolButton#foo where foo is one of:
actionChange_Game
actionInstallMod
actionNexus
actionAdd_Profile
actionModify_Executables
actionTool
actionSettings
seperator
actionEndorseMO
actionProblems
actionUpdate
actionHelp
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 300c187e..dc09ae4e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -257,6 +257,9 @@ MainWindow::MainWindow(QSettings &initSettings createHelpWidget();
for (QAction *action : ui->toolBar->actions()) {
+ // set the name of the widget to the name of the action to allow styling
+ ui->toolBar->widgetForAction(action)->setObjectName(action->objectName());
+
if (action->isSeparator()) {
// insert spacers
ui->toolBar->insertWidget(action, spacer);
|
