diff widgets/IconLoader.h @ 957:4b5efd76a55c scalable-icons

Experiment with loading SVGs
author Chris Cannam
date Wed, 06 May 2015 10:08:28 +0100
parents 4ca7562dd246
children a34a2a25907c
line wrap: on
line diff
--- a/widgets/IconLoader.h	Mon Apr 20 10:10:26 2015 +0100
+++ b/widgets/IconLoader.h	Wed May 06 10:08:28 2015 +0100
@@ -25,7 +25,15 @@
     virtual ~IconLoader() { }
 
     QIcon load(QString name);
-    QPixmap loadPixmap(QString name);
+
+private:
+    bool shouldInvert() const;
+    bool shouldAutoInvert(QString) const;
+    QPixmap loadPixmap(QString, int);
+    QPixmap loadScalable(QString, int);
+    QPixmap invertPixmap(QPixmap);
+    QString makeScalableFilename(QString, bool);
+    QString makeNonScalableFilename(QString, int, bool);
 };
 
 #endif