author | llornkcor <llornkcor> | 2003-03-26 02:07:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-03-26 02:07:38 (UTC) |
commit | 445c957aeddcea7ee0b83657e00987103a6d35b0 (patch) (side-by-side diff) | |
tree | 4efbff1b8896295e532d1c10dd33e4ab177f014c | |
parent | a76176911328349414203edda3785ac8925c0648 (diff) | |
download | opie-445c957aeddcea7ee0b83657e00987103a6d35b0.zip opie-445c957aeddcea7ee0b83657e00987103a6d35b0.tar.gz opie-445c957aeddcea7ee0b83657e00987103a6d35b0.tar.bz2 |
change to UnknownDocument icon and scale
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 17 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 2 |
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 @@ +#include <qwmatrix.h> #include <qregexp.h> @@ -75,2 +76,7 @@ AdvancedFm::AdvancedFm( ) + QWMatrix matrix; + QPixmap pix(Resource::loadPixmap( "UnknownDocument" )); + matrix.scale( .4, .4); + unknownXpm = pix.xForm(matrix); + initConnections(); @@ -192,6 +198,6 @@ void AdvancedFm::populateView() pm=mt.pixmap(); //sets the correct pixmap for mimetype - if(pm.isNull()) - pm = Resource::loadPixmap( "UnknownDocument-14" ); + if(pm.isNull()) { + pm = unknownXpm; + } } - item->setPixmap( 0,pm); if( fi->isSymLink() && fileL.find("->",0,TRUE) != -1) @@ -204,4 +210,5 @@ void AdvancedFm::populateView() pm.setMask( pm.createHeuristicMask( FALSE ) ); - item->setPixmap( 0, pm); } + item->setPixmap( 0,pm); + } @@ -230,3 +237,3 @@ void AdvancedFm::populateView() item= new QListViewItem( thisView, fileL, fileS, fileDate); - pm = Resource::loadPixmap( "UnknownDocument-14" ); + pm = unknownXpm; 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 @@ #include <qtimer.h> +#include <qpixmap.h> @@ -93,2 +94,3 @@ protected: OTabWidget *TabWidget; + QPixmap unknownXpm; int whichTab; |