-rw-r--r-- | microkde/kiconloader.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/microkde/kiconloader.cpp b/microkde/kiconloader.cpp index 4842d71..e7f657d 100644 --- a/microkde/kiconloader.cpp +++ b/microkde/kiconloader.cpp | |||
@@ -1,30 +1,32 @@ | |||
1 | 1 | ||
2 | #include "kiconloader.h" | 2 | #include "kiconloader.h" |
3 | #include "kglobal.h" | 3 | #include "kglobal.h" |
4 | 4 | ||
5 | #ifndef DESKTOP_VERSION_OEGEL | 5 | #ifndef DESKTOP_VERSION_OEGEL |
6 | #include <qdir.h> | 6 | #include <qdir.h> |
7 | //Added by qt3to4: | ||
8 | #include <QPixmap> | ||
7 | QPixmap KIconLoader::loadIcon( const QString& name, KIcon::Group, int, | 9 | QPixmap KIconLoader::loadIcon( const QString& name, KIcon::Group, int, |
8 | int, QString *, bool ) const | 10 | int, QString *, bool ) const |
9 | { | 11 | { |
10 | QPixmap pix; | 12 | QPixmap pix; |
11 | QString file; | 13 | QString file; |
12 | file = iconPath() + name+".png"; | 14 | file = iconPath() + name+".png"; |
13 | pix.load ( file ); | 15 | pix.load ( file ); |
14 | // qDebug("KIconLoader::loadIcon %s -----------", file.latin1()); | 16 | // qDebug("KIconLoader::loadIcon %s -----------", file.latin1()); |
15 | return pix; | 17 | return pix; |
16 | } | 18 | } |
17 | QIconSet KIconLoader::loadIconSet( const QString& name) const | 19 | QIcon KIconLoader::loadIconSet( const QString& name) const |
18 | { | 20 | { |
19 | QPixmap pixmapLoader; | 21 | QPixmap pixmapLoader; |
20 | QString file; | 22 | QString file; |
21 | file = iconPath() + name+".png"; | 23 | file = iconPath() + name+".png"; |
22 | pixmapLoader.load( file ); | 24 | pixmapLoader.load( file ); |
23 | //qDebug("KIconLoader::loadIconSet: %s ************", file.latin1() ); | 25 | //qDebug("KIconLoader::loadIconSet: %s ************", file.latin1() ); |
24 | QIconSet is ( pixmapLoader ); | 26 | QIcon is ( pixmapLoader ); |
25 | return is; | 27 | return is; |
26 | } | 28 | } |
27 | 29 | ||
28 | QPixmap BarIcon( const QString &name ) | 30 | QPixmap BarIcon( const QString &name ) |
29 | { | 31 | { |
30 | QPixmap pix; | 32 | QPixmap pix; |
@@ -74,18 +76,18 @@ QPixmap KIconLoader::loadIcon( const QString& name, KIcon::Group, int, | |||
74 | if (pPtr == 0) | 76 | if (pPtr == 0) |
75 | qDebug("KIconLoader::loadIcon: %s not found", px.latin1()); | 77 | qDebug("KIconLoader::loadIcon: %s not found", px.latin1()); |
76 | 78 | ||
77 | return p; | 79 | return p; |
78 | } | 80 | } |
79 | 81 | ||
80 | QIconSet KIconLoader::loadIconSet( const QString& name) const | 82 | QIcon KIconLoader::loadIconSet( const QString& name) const |
81 | { | 83 | { |
82 | QString px = this->iconPath() + "/" + name; | 84 | QString px = this->iconPath() + "/" + name; |
83 | 85 | ||
84 | QIconSet is ;//= Resource::loadIconSet( px ); | 86 | QIcon is ;//= Resource::loadIconSet( px ); |
85 | QIconSet* isPtr = 0;//LR&is; | 87 | QIcon* isPtr = 0;//LR&is; |
86 | if (isPtr == 0) | 88 | if (isPtr == 0) |
87 | qDebug("KIconLoader::loadIconSet: %s not foun", px.latin1()); | 89 | qDebug("KIconLoader::loadIconSet: %s not foun", px.latin1()); |
88 | 90 | ||
89 | return is; | 91 | return is; |
90 | } | 92 | } |
91 | 93 | ||