Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 1610:3b8bd7e520c5
Note the release ID stuff to the debug log as well as in the about box
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2017 11:12:49 +0000 |
parents | 28d80ef79473 |
children | 3f6c18fcc075 |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Feb 24 10:16:40 2017 +0000 +++ b/main/MainWindow.cpp Fri Feb 24 11:12:49 2017 +0000 @@ -176,6 +176,8 @@ { Profiler profiler("MainWindow::MainWindow"); + SVDEBUG << "MainWindow: " << getReleaseText() << endl; + setWindowTitle(QApplication::applicationName()); UnitDatabase *udb = UnitDatabase::getInstance(); @@ -4833,8 +4835,8 @@ delete d; } -void -MainWindow::about() +QString +MainWindow::getReleaseText() const { bool debug = false; QString version = "(unknown version)"; @@ -4854,14 +4856,20 @@ #endif // SVNREV #endif // SV_VERSION - QString aboutText; - - aboutText += tr("<h3>About Sonic Visualiser</h3>"); - aboutText += tr("<p>Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.<br><a href=\"http://www.sonicvisualiser.org/\">http://www.sonicvisualiser.org/</a></p>"); - aboutText += tr("<p><small>%1 : %2 configuration, %3-bit build</small></p>") + return tr("%1 : %2 configuration, %3-bit build") .arg(version) .arg(debug ? tr("Debug") : tr("Release")) .arg(sizeof(void *) * 8); +} + +void +MainWindow::about() +{ + QString aboutText; + + aboutText += tr("<h3>About Sonic Visualiser</h3>"); + aboutText += tr("<p>Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.<br><a href=\"http://www.sonicvisualiser.org/\">http://www.sonicvisualiser.org/</a></p>"); + aboutText += QString("<p><small>%1</small></p>").arg(getReleaseText()); if (m_oscQueue && m_oscQueue->isOK()) { aboutText += tr("</small><p><small>The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL());