# HG changeset patch # User Chris Cannam # Date 1487934769 0 # Node ID 3b8bd7e520c5b7c5c8cbba750022e97e63c5fb2a # Parent 751260ba5017caa18fb19f389fc42392a42b67d2 Note the release ID stuff to the debug log as well as in the about box diff -r 751260ba5017 -r 3b8bd7e520c5 main/MainWindow.cpp --- 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("

About Sonic Visualiser

"); - aboutText += tr("

Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.
http://www.sonicvisualiser.org/

"); - aboutText += tr("

%1 : %2 configuration, %3-bit build

") + 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("

About Sonic Visualiser

"); + aboutText += tr("

Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.
http://www.sonicvisualiser.org/

"); + aboutText += QString("

%1

").arg(getReleaseText()); if (m_oscQueue && m_oscQueue->isOK()) { aboutText += tr("

The OSC URL for this instance is: \"%1\"").arg(m_oscQueue->getOSCURL()); diff -r 751260ba5017 -r 3b8bd7e520c5 main/MainWindow.h --- a/main/MainWindow.h Fri Feb 24 10:16:40 2017 +0000 +++ b/main/MainWindow.h Fri Feb 24 11:12:49 2017 +0000 @@ -266,6 +266,8 @@ typedef std::map NumberingActionMap; NumberingActionMap m_numberingActions; + QString getReleaseText() const; + virtual void setupMenus(); virtual void setupFileMenu(); virtual void setupEditMenu();