From 114dc0018c29cb899f10bbbe4eb84db1482f9598 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 26 Mar 2003 02:29:46 +0000 Subject: change to UnknownDocument icon --- diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 7c83223..db365ca 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp @@ -86,6 +86,11 @@ OpieFtp::OpieFtp( ) // QPEToolBar *menuBar = new QPEToolBar(this); // menuBar->setHorizontalStretchable( TRUE ); + QWMatrix matrix; + QPixmap pix(Resource::loadPixmap( "UnknownDocument" )); + matrix.scale( .4, .4); + unknownXpm = pix.xForm(matrix); + connectionMenu = new QPopupMenu( this ); localMenu = new QPopupMenu( this ); remoteMenu = new QPopupMenu( this ); @@ -688,8 +693,7 @@ void OpieFtp::populateLocalView() MimeType mt(fi->filePath()); pm=mt.pixmap(); //sets the correct pixmap for mimetype if(pm.isNull()) - pm = Resource::loadPixmap( "UnknownDocument-14" ); - item->setPixmap( 0,pm); + pm = unknownXpm; } } if( fileL.find("->",0,TRUE) != -1) { @@ -699,8 +703,8 @@ void OpieFtp::populateLocalView() QPainter painter( &pm ); painter.drawPixmap( pm.width()-lnk.width(), pm.height()-lnk.height(), lnk ); pm.setMask( pm.createHeuristicMask( FALSE ) ); - item->setPixmap( 0, pm); } + item->setPixmap( 0,pm); } isDir=FALSE; ++it; diff --git a/noncore/net/opieftp/opieftp.h b/noncore/net/opieftp/opieftp.h index 109b5f8..9d5d211 100644 --- a/noncore/net/opieftp/opieftp.h +++ b/noncore/net/opieftp/opieftp.h @@ -18,6 +18,7 @@ #include #include #include +#include class QVBoxLayout; class QHBoxLayout; @@ -127,6 +128,7 @@ protected slots: void serverListClicked( const QString &); protected: + QPixmap unknownXpm; bool fuckeduphack; QStringList remoteDirPathStringList, localDirPathStringList; QString newServerName; -- cgit v0.9.0.2