From 33dfe08454a70d3f9dd6dd154385c40adf6df918 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 20 Dec 2003 16:08:41 +0000 Subject: more work towards repairing the x11 version - still far away though --- (limited to 'noncore/net/wellenreiter/gui/resource.cpp') 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 @@ #define PIXMAPPATH "/usr/local/share" +#include +#include + namespace Resource { @@ -32,4 +35,16 @@ QPixmap loadPixmap( const QString& pix ) return pixmap; }; +QIconSet loadIconSet( const QString& pix ) +{ + QString filename; + filename.sprintf( "%s/%s.png", (const char*) PIXMAPPATH, (const char*) pix ); + QPixmap pixmap( filename ); + if ( pixmap.isNull() ) + { + qDebug( "Wellenreiter::Resource: can't find pixmap " + filename ); + } + return QIconSet( pixmap ); +}; + }; -- cgit v0.9.0.2