changeset 952:45bb2eaf7fe1 scalable-icons

Various fixes to scalable rendering
author Chris Cannam
date Wed, 06 May 2015 10:44:19 +0100
parents 61703996628d
children 4a8f87c175f7
files .hgsubstate main/main.cpp sonic-visualiser.qrc
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.hgsubstate	Wed May 06 10:08:28 2015 +0100
+++ b/.hgsubstate	Wed May 06 10:44:19 2015 +0100
@@ -1,6 +1,6 @@
 d16f0fd6db6104d87882bc43788a3bb1b0f8c528 dataquay
-28748e29e057cdfba4706559a3fbba04569f1404 icons/scalable
+886bc1927f683ff757adaa51b9398d086abbea96 icons/scalable
 55ece8862b6d3a54aad271a53f9c1615e5d3bcf8 sv-dependency-builds
 dc1a360f2b694d73d4bc858b708db44249e2cddc svapp
 32ab6c48efaa23d24a67315bccdc27f3ba1a18d5 svcore
-4b5efd76a55c814ba830ed694ae0886eb7a148b8 svgui
+85b39667e9cf544206c3f68bd14692678770656c svgui
--- a/main/main.cpp	Wed May 06 10:08:28 2015 +0100
+++ b/main/main.cpp	Wed May 06 10:44:19 2015 +0100
@@ -272,13 +272,15 @@
     QApplication::setOrganizationDomain("sonicvisualiser.org");
     QApplication::setApplicationName(QApplication::tr("Sonic Visualiser"));
 
+    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
+
     QSplashScreen *splash = 0;
 
     QSettings settings;
 
     settings.beginGroup("Preferences");
     if (settings.value("show-splash", true).toBool()) {
-        QPixmap pixmap(":/icons/sv-splash.png");
+        QPixmap pixmap(":/icons/scalable/sv-splash@2x.png");
         QPainter painter;
         painter.begin(&pixmap);
         QString text = QString("v%1").arg(SV_VERSION);
--- a/sonic-visualiser.qrc	Wed May 06 10:08:28 2015 +0100
+++ b/sonic-visualiser.qrc	Wed May 06 10:44:19 2015 +0100
@@ -23,6 +23,8 @@
     <file>icons/scalable/sv-icon-light.svg</file>
     <file>icons/scalable/sv-icon.svg</file>
     <file>icons/scalable/sv-splash.svg</file>
+    <file>icons/scalable/sv-splash.png</file>
+    <file>icons/scalable/sv-splash@2x.png</file>
     <file>icons/scalable/waveform.svg</file>
     <file>icons/waveform.png</file>
     <file>icons/spectrum.png</file>