comparison 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
comparison
equal deleted inserted replaced
205:360d3c7d63df 206:40e6ba379f2c
98 m_rwdAction(0), 98 m_rwdAction(0),
99 m_intelligentActionOn(true), //GF: !!! temporary 99 m_intelligentActionOn(true), //GF: !!! temporary
100 m_keyReference(new KeyReference()) 100 m_keyReference(new KeyReference())
101 { 101 {
102 setWindowTitle(QApplication::applicationName()); 102 setWindowTitle(QApplication::applicationName());
103
104 #ifdef Q_OS_MAC
105 #if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
106 setUnifiedTitleAndToolBarOnMac(true);
107 #endif
108 #endif
103 109
104 UnitDatabase *udb = UnitDatabase::getInstance(); 110 UnitDatabase *udb = UnitDatabase::getInstance();
105 udb->registerUnit("Hz"); 111 udb->registerUnit("Hz");
106 udb->registerUnit("dB"); 112 udb->registerUnit("dB");
107 udb->registerUnit("s"); 113 udb->registerUnit("s");
2576 aboutText += tr("<h3>About Tony</h3>"); 2582 aboutText += tr("<h3>About Tony</h3>");
2577 aboutText += tr("<p>Tony is a program for interactive note and pitch analysis and annotation.</p>"); 2583 aboutText += tr("<p>Tony is a program for interactive note and pitch analysis and annotation.</p>");
2578 aboutText += tr("<p>%1 : %2 configuration</p>") 2584 aboutText += tr("<p>%1 : %2 configuration</p>")
2579 .arg(version) 2585 .arg(version)
2580 .arg(debug ? tr("Debug") : tr("Release")); 2586 .arg(debug ? tr("Debug") : tr("Release"));
2587 aboutText += tr("<p>Using Qt version %1</p>")
2588 .arg(QT_VERSION_STR);
2581 2589
2582 aboutText += 2590 aboutText +=
2583 "<p>Copyright &copy; 2005&ndash;2013 Chris Cannam, Matthias Mauch, George Fazekas, and Queen Mary University of London.</p>" 2591 "<p>Copyright &copy; 2005&ndash;2013 Chris Cannam, Matthias Mauch, George Fazekas, and Queen Mary University of London.</p>"
2584 "<p>This program is free software; you can redistribute it and/or " 2592 "<p>This program is free software; you can redistribute it and/or "
2585 "modify it under the terms of the GNU General Public License as " 2593 "modify it under the terms of the GNU General Public License as "