diff src/MainWindow.cpp @ 206:40e6ba379f2c

Unified toolbar, and version check
author Chris Cannam
date Thu, 06 Mar 2014 11:02:53 +0000
parents 0ba33d6c0a71
children e79f63161b41
line wrap: on
line diff
--- a/src/MainWindow.cpp	Thu Mar 06 09:43:25 2014 +0000
+++ b/src/MainWindow.cpp	Thu Mar 06 11:02:53 2014 +0000
@@ -101,6 +101,12 @@
 {
     setWindowTitle(QApplication::applicationName());
 
+#ifdef Q_OS_MAC
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
+    setUnifiedTitleAndToolBarOnMac(true);
+#endif
+#endif
+
     UnitDatabase *udb = UnitDatabase::getInstance();
     udb->registerUnit("Hz");
     udb->registerUnit("dB");
@@ -2578,6 +2584,8 @@
     aboutText += tr("<p>%1 : %2 configuration</p>")
         .arg(version)
         .arg(debug ? tr("Debug") : tr("Release"));
+    aboutText += tr("<p>Using Qt version %1</p>")
+        .arg(QT_VERSION_STR);
 
     aboutText += 
         "<p>Copyright &copy; 2005&ndash;2013 Chris Cannam, Matthias Mauch, George Fazekas, and Queen Mary University of London.</p>"