summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp17
-rw-r--r--noncore/apps/advancedfm/advancedfm.h2
2 files changed, 14 insertions, 5 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index bb7f346..1a5e131 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -33,2 +33,3 @@
33 33
34#include <qwmatrix.h>
34#include <qregexp.h> 35#include <qregexp.h>
@@ -75,2 +76,7 @@ AdvancedFm::AdvancedFm( )
75 76
77 QWMatrix matrix;
78 QPixmap pix(Resource::loadPixmap( "UnknownDocument" ));
79 matrix.scale( .4, .4);
80 unknownXpm = pix.xForm(matrix);
81
76 initConnections(); 82 initConnections();
@@ -192,6 +198,6 @@ void AdvancedFm::populateView()
192 pm=mt.pixmap(); //sets the correct pixmap for mimetype 198 pm=mt.pixmap(); //sets the correct pixmap for mimetype
193 if(pm.isNull()) 199 if(pm.isNull()) {
194 pm = Resource::loadPixmap( "UnknownDocument-14" ); 200 pm = unknownXpm;
201 }
195 } 202 }
196 item->setPixmap( 0,pm);
197 if( fi->isSymLink() && fileL.find("->",0,TRUE) != -1) 203 if( fi->isSymLink() && fileL.find("->",0,TRUE) != -1)
@@ -204,4 +210,5 @@ void AdvancedFm::populateView()
204 pm.setMask( pm.createHeuristicMask( FALSE ) ); 210 pm.setMask( pm.createHeuristicMask( FALSE ) );
205 item->setPixmap( 0, pm);
206 } 211 }
212 item->setPixmap( 0,pm);
213
207 } 214 }
@@ -230,3 +237,3 @@ void AdvancedFm::populateView()
230 item= new QListViewItem( thisView, fileL, fileS, fileDate); 237 item= new QListViewItem( thisView, fileL, fileS, fileDate);
231 pm = Resource::loadPixmap( "UnknownDocument-14" ); 238 pm = unknownXpm;
232 item->setPixmap( 0,pm); 239 item->setPixmap( 0,pm);
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index f31956c..c30d8e0 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -28,2 +28,3 @@
28#include <qtimer.h> 28#include <qtimer.h>
29#include <qpixmap.h>
29 30
@@ -93,2 +94,3 @@ protected:
93 OTabWidget *TabWidget; 94 OTabWidget *TabWidget;
95 QPixmap unknownXpm;
94 int whichTab; 96 int whichTab;