Mercurial > hg > sonic-visualiser
comparison main/main.cpp @ 952:45bb2eaf7fe1 scalable-icons
Various fixes to scalable rendering
author | Chris Cannam |
---|---|
date | Wed, 06 May 2015 10:44:19 +0100 |
parents | 62198dde171e |
children | 4a8f87c175f7 |
comparison
equal
deleted
inserted
replaced
951:61703996628d | 952:45bb2eaf7fe1 |
---|---|
270 | 270 |
271 QApplication::setOrganizationName("sonic-visualiser"); | 271 QApplication::setOrganizationName("sonic-visualiser"); |
272 QApplication::setOrganizationDomain("sonicvisualiser.org"); | 272 QApplication::setOrganizationDomain("sonicvisualiser.org"); |
273 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser")); | 273 QApplication::setApplicationName(QApplication::tr("Sonic Visualiser")); |
274 | 274 |
275 QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); | |
276 | |
275 QSplashScreen *splash = 0; | 277 QSplashScreen *splash = 0; |
276 | 278 |
277 QSettings settings; | 279 QSettings settings; |
278 | 280 |
279 settings.beginGroup("Preferences"); | 281 settings.beginGroup("Preferences"); |
280 if (settings.value("show-splash", true).toBool()) { | 282 if (settings.value("show-splash", true).toBool()) { |
281 QPixmap pixmap(":/icons/sv-splash.png"); | 283 QPixmap pixmap(":/icons/scalable/sv-splash@2x.png"); |
282 QPainter painter; | 284 QPainter painter; |
283 painter.begin(&pixmap); | 285 painter.begin(&pixmap); |
284 QString text = QString("v%1").arg(SV_VERSION); | 286 QString text = QString("v%1").arg(SV_VERSION); |
285 painter.drawText | 287 painter.drawText |
286 (pixmap.width() - painter.fontMetrics().width(text) - 10, | 288 (pixmap.width() - painter.fontMetrics().width(text) - 10, |