comparison main/main.cpp @ 141:c3114dffdff4

* Add svg-based icon
author Chris Cannam
date Wed, 02 May 2007 10:50:32 +0000
parents 006c90387f40
children dfaf4f9330b5
comparison
equal deleted inserted replaced
140:107ca17594c8 141:c3114dffdff4
221 if (args.contains("--no-osc")) oscSupport = false; 221 if (args.contains("--no-osc")) oscSupport = false;
222 222
223 QApplication::setOrganizationName("sonic-visualiser"); 223 QApplication::setOrganizationName("sonic-visualiser");
224 QApplication::setOrganizationDomain("sonicvisualiser.org"); 224 QApplication::setOrganizationDomain("sonicvisualiser.org");
225 QApplication::setApplicationName("sonic-visualiser"); 225 QApplication::setApplicationName("sonic-visualiser");
226 QApplication::setWindowIcon(QIcon(":icons/svicon16.png")); 226
227 QIcon icon;
228 int sizes[] = { 16, 22, 24, 32, 48, 64, 128 };
229 for (int i = 0; i < sizeof(sizes)/sizeof(sizes[0]); ++i) {
230 icon.addFile(QString(":icons/sv-%1x%2.png").arg(sizes[i]).arg(sizes[i]));
231 }
232 QApplication::setWindowIcon(icon);
227 233
228 QString language = QLocale::system().name(); 234 QString language = QLocale::system().name();
229 235
230 QTranslator qtTranslator; 236 QTranslator qtTranslator;
231 QString qtTrName = QString("qt_%1").arg(language); 237 QString qtTrName = QString("qt_%1").arg(language);