From df441d758b3d94c003ad5c8575b214446d3a6d6d Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Tue, 6 Apr 2010 19:34:19 +0200 Subject: [PATCH] Toolbar follows native style with Qt >= 4.6 --- src/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 767aaa5..e3c5a20 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -279,7 +279,11 @@ void MainWindow::createMenus() { void MainWindow::createToolBars() { mainToolBar = new QToolBar(this); +#if QT_VERSION < 0x040600 mainToolBar->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); +#else + mainToolBar->setToolButtonStyle(Qt::ToolButtonFollowStyle); +#endif mainToolBar->setFloatable(false); mainToolBar->setMovable(false); // cool toolbar on the Mac -- 2.39.5