comparison main/main.cpp @ 213:9e396b8d7dfc

* Factor out uses of "Sonic Visualiser" in "common" code to applicationName() * Add ability to show work title + artist in top-left of pane (thinking of Vect but may be useful in SV in future) * A few other generalisations useful for Vect
author Chris Cannam
date Fri, 09 Nov 2007 17:46:58 +0000
parents 1871581e4da9
children 37847fc0b381
comparison
equal deleted inserted replaced
212:0eadcdd0dcbe 213:9e396b8d7dfc
221 if (args.contains("--no-audio")) audioOutput = false; 221 if (args.contains("--no-audio")) audioOutput = false;
222 if (args.contains("--no-osc")) oscSupport = false; 222 if (args.contains("--no-osc")) oscSupport = false;
223 223
224 QApplication::setOrganizationName("sonic-visualiser"); 224 QApplication::setOrganizationName("sonic-visualiser");
225 QApplication::setOrganizationDomain("sonicvisualiser.org"); 225 QApplication::setOrganizationDomain("sonicvisualiser.org");
226 QApplication::setApplicationName("sonic-visualiser"); 226 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser"));
227 227
228 QIcon icon; 228 QIcon icon;
229 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 }; 229 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 };
230 for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) { 230 for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) {
231 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i])); 231 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i]));