summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
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);