Diffstat (limited to 'noncore/net/wellenreiter/gui/resource.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/resource.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/resource.cpp b/noncore/net/wellenreiter/gui/resource.cpp index 7683329..a39bbcc 100644 --- a/noncore/net/wellenreiter/gui/resource.cpp +++ b/noncore/net/wellenreiter/gui/resource.cpp | |||
@@ -17,6 +17,9 @@ | |||
17 | 17 | ||
18 | #define PIXMAPPATH "/usr/local/share" | 18 | #define PIXMAPPATH "/usr/local/share" |
19 | 19 | ||
20 | #include <qpixmap.h> | ||
21 | #include <qiconset.h> | ||
22 | |||
20 | namespace Resource | 23 | namespace Resource |
21 | { | 24 | { |
22 | 25 | ||
@@ -32,4 +35,16 @@ QPixmap loadPixmap( const QString& pix ) | |||
32 | return pixmap; | 35 | return pixmap; |
33 | }; | 36 | }; |
34 | 37 | ||
38 | QIconSet loadIconSet( const QString& pix ) | ||
39 | { | ||
40 | QString filename; | ||
41 | filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); | ||
42 | QPixmap pixmap( filename ); | ||
43 | if ( pixmap.isNull() ) | ||
44 | { | ||
45 | qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); | ||
46 | } | ||
47 | return QIconSet( pixmap ); | ||
48 | }; | ||
49 | |||
35 | }; | 50 | }; |