comparison main/MainWindow.cpp @ 598:7079871e62c9

Expand release text
author Chris Cannam
date Mon, 30 Sep 2019 12:35:26 +0100
parents 1dfdbd017cf5
children fd86f443678a
comparison
equal deleted inserted replaced
597:5ff3eb39e580 598:7079871e62c9
3260 d->exec(); 3260 d->exec();
3261 3261
3262 delete d; 3262 delete d;
3263 } 3263 }
3264 3264
3265 QString
3266 MainWindow::getReleaseText() const
3267 {
3268 bool debug = false;
3269 QString version = "(unknown version)";
3270
3271 #ifdef BUILD_DEBUG
3272 debug = true;
3273 #endif // BUILD_DEBUG
3274 #ifdef TONY_VERSION
3275 #ifdef SVNREV
3276 version = tr("Release %1 : Revision %2").arg(TONY_VERSION).arg(SVNREV);
3277 #else // !SVNREV
3278 version = tr("Release %1").arg(TONY_VERSION);
3279 #endif // SVNREV
3280 #else // !TONY_VERSION
3281 #ifdef SVNREV
3282 version = tr("Unreleased : Revision %1").arg(SVNREV);
3283 #endif // SVNREV
3284 #endif // TONY_VERSION
3285
3286 return tr("%1 : %2 configuration, %3-bit build")
3287 .arg(version)
3288 .arg(debug ? tr("Debug") : tr("Release"))
3289 .arg(sizeof(void *) * 8);
3290 }
3291
3265 void 3292 void
3266 MainWindow::about() 3293 MainWindow::about()
3267 { 3294 {
3268 bool debug = false; 3295 bool debug = false;
3269 QString version = "(unknown version)"; 3296 QString version = "(unknown version)";
3275 3302
3276 QString aboutText; 3303 QString aboutText;
3277 3304
3278 aboutText += tr("<h3>About Tony</h3>"); 3305 aboutText += tr("<h3>About Tony</h3>");
3279 aboutText += tr("<p>Tony is a program for interactive note and pitch analysis and annotation.</p>"); 3306 aboutText += tr("<p>Tony is a program for interactive note and pitch analysis and annotation.</p>");
3280 aboutText += tr("<p>%1 : %2 configuration</p>") 3307 aboutText += QString("<p><small>%1</small></p>").arg(getReleaseText());
3281 .arg(version)
3282 .arg(debug ? tr("Debug") : tr("Release"));
3283 aboutText += tr("<p>Using Qt framework version %1.</p>") 3308 aboutText += tr("<p>Using Qt framework version %1.</p>")
3284 .arg(QT_VERSION_STR); 3309 .arg(QT_VERSION_STR);
3285 3310
3286 aboutText += 3311 aboutText +=
3287 "<p>Copyright &copy; 2005&ndash;2019 Chris Cannam, Queen Mary University of London, and the Tony project authors: Matthias Mauch, George Fazekas, Justin Salamon, and Rachel Bittner.</p>" 3312 "<p>Copyright &copy; 2005&ndash;2019 Chris Cannam, Queen Mary University of London, and the Tony project authors: Matthias Mauch, George Fazekas, Justin Salamon, and Rachel Bittner.</p>"