summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector.cc15
1 files changed, 11 insertions, 4 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc
index 7481360..6748bec 100644
--- a/libopie/ofileselector.cc
+++ b/libopie/ofileselector.cc
@@ -2,2 +2,3 @@
+#include <qwmatrix.h>
#include <qcheckbox.h>
@@ -136,3 +137,2 @@ OFileSelector::OFileSelector(const QString &mimeFilter, QWidget *parent,
-
}
@@ -698,4 +698,10 @@ void OFileSelector::addFile(const QString &/*mime*/, QFileInfo *info, bool symli
bool locked;
- if( pix.isNull() )
- pix = Resource::loadPixmap( "UnknownDocument-14");
+ if( pix.isNull() ) {
+ //TODO make this scaled pixmap global, so we dont have to keep doing this
+ QWMatrix matrix;
+ QPixmap pixer(Resource::loadPixmap( "UnknownDocument" ));
+ matrix.scale( .4, .4);
+ pix = pixer.xForm(matrix);
+// pix = Resource::loadPixmap( "UnknownDocument-14");
+ }
dir = info->dirPath( true );
@@ -924,3 +930,4 @@ void OFileSelector::initializeListView()
- connect(m_View, SIGNAL(currentChanged(QListViewItem *) ),
+ connect(m_View, SIGNAL(clicked(QListViewItem *) ),
+// connect(m_View, SIGNAL(currentChanged(QListViewItem *) ),
this, SLOT(slotCurrentChanged(QListViewItem * ) ) );