comparison 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
comparison
equal deleted inserted replaced
947:e53a87a5efb2 957:4b5efd76a55c
23 public: 23 public:
24 IconLoader() { } 24 IconLoader() { }
25 virtual ~IconLoader() { } 25 virtual ~IconLoader() { }
26 26
27 QIcon load(QString name); 27 QIcon load(QString name);
28 QPixmap loadPixmap(QString name); 28
29 private:
30 bool shouldInvert() const;
31 bool shouldAutoInvert(QString) const;
32 QPixmap loadPixmap(QString, int);
33 QPixmap loadScalable(QString, int);
34 QPixmap invertPixmap(QPixmap);
35 QString makeScalableFilename(QString, bool);
36 QString makeNonScalableFilename(QString, int, bool);
29 }; 37 };
30 38
31 #endif 39 #endif
32 40
33 41