From 1e4b5d2436df759dead3f7c9da9c928da3ff3047 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Sun, 5 Aug 2018 15:56:39 -0500 Subject: 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 --- src/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mainwindow.cpp') 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); -- cgit v1.3.1