author | llornkcor <llornkcor> | 2003-03-26 02:29:46 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-03-26 02:29:46 (UTC) |
commit | 114dc0018c29cb899f10bbbe4eb84db1482f9598 (patch) (side-by-side diff) | |
tree | 5f090b026bcb6cafe39b4650530fe0a5cac16bdc /noncore/net/opieftp/opieftp.cpp | |
parent | 445c957aeddcea7ee0b83657e00987103a6d35b0 (diff) | |
download | opie-114dc0018c29cb899f10bbbe4eb84db1482f9598.zip opie-114dc0018c29cb899f10bbbe4eb84db1482f9598.tar.gz opie-114dc0018c29cb899f10bbbe4eb84db1482f9598.tar.bz2 |
change to UnknownDocument icon
Diffstat (limited to 'noncore/net/opieftp/opieftp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
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 @@ -87,4 +87,9 @@ OpieFtp::OpieFtp( ) // 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 ); @@ -689,6 +694,5 @@ void OpieFtp::populateLocalView() pm=mt.pixmap(); //sets the correct pixmap for mimetype if(pm.isNull()) - pm = Resource::loadPixmap( "UnknownDocument-14" ); - item->setPixmap( 0,pm); + pm = unknownXpm; } } @@ -700,6 +704,6 @@ void OpieFtp::populateLocalView() 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; |