From: Flavio Tordini Date: Tue, 6 Apr 2010 17:34:19 +0000 (+0200) Subject: Toolbar follows native style with Qt >= 4.6 X-Git-Tag: 1.0~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df441d758b3d94c003ad5c8575b214446d3a6d6d;p=minitube Toolbar follows native style with Qt >= 4.6 --- 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