author | llornkcor <llornkcor> | 2003-04-15 01:46:54 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-04-15 01:46:54 (UTC) |
commit | d2f7c238e852eb60fdcfe3e4024823480713e50e (patch) (unidiff) | |
tree | 0109f1fc75cd7477581cb2cfac1a349fcb44c6ef /libopie | |
parent | 79e83da7936995f247f7ad7ad0f768b6e2545cf1 (diff) | |
download | opie-d2f7c238e852eb60fdcfe3e4024823480713e50e.zip opie-d2f7c238e852eb60fdcfe3e4024823480713e50e.tar.gz opie-d2f7c238e852eb60fdcfe3e4024823480713e50e.tar.bz2 |
fixed for bug 855, changed currentChanged(...) to clicked(...). also changed UnknownDocument-14 to scaled UnknownDocument
-rw-r--r-- | libopie/ofileselector.cc | 15 |
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 | |||
@@ -1,5 +1,6 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | #include <qwmatrix.h> | ||
3 | #include <qcheckbox.h> | 4 | #include <qcheckbox.h> |
4 | #include <qcombobox.h> | 5 | #include <qcombobox.h> |
5 | #include <qheader.h> | 6 | #include <qheader.h> |
@@ -134,7 +135,6 @@ OFileSelector::OFileSelector(const QString &mimeFilter, QWidget *parent, | |||
134 | m_shYesNo = false; | 135 | m_shYesNo = false; |
135 | init(); | 136 | init(); |
136 | 137 | ||
137 | |||
138 | } | 138 | } |
139 | 139 | ||
140 | OFileSelector::~OFileSelector() | 140 | OFileSelector::~OFileSelector() |
@@ -696,8 +696,14 @@ void OFileSelector::addFile(const QString &/*mime*/, QFileInfo *info, bool symli | |||
696 | QString dir; | 696 | QString dir; |
697 | QString name; | 697 | QString name; |
698 | bool locked; | 698 | bool locked; |
699 | if( pix.isNull() ) | 699 | if( pix.isNull() ) { |
700 | pix = Resource::loadPixmap( "UnknownDocument-14"); | 700 | //TODO make this scaled pixmap global, so we dont have to keep doing this |
701 | QWMatrix matrix; | ||
702 | QPixmap pixer(Resource::loadPixmap( "UnknownDocument" )); | ||
703 | matrix.scale( .4, .4); | ||
704 | pix = pixer.xForm(matrix); | ||
705 | // pix = Resource::loadPixmap( "UnknownDocument-14"); | ||
706 | } | ||
701 | dir = info->dirPath( true ); | 707 | dir = info->dirPath( true ); |
702 | if( symlink ) | 708 | if( symlink ) |
703 | name = info->fileName() + " -> " +info->dirPath() + "/" + info->readLink(); | 709 | name = info->fileName() + " -> " +info->dirPath() + "/" + info->readLink(); |
@@ -922,7 +928,8 @@ void OFileSelector::initializeListView() | |||
922 | connect(m_View, SIGNAL(selectionChanged() ), | 928 | connect(m_View, SIGNAL(selectionChanged() ), |
923 | this, SLOT(slotSelectionChanged() ) ); | 929 | this, SLOT(slotSelectionChanged() ) ); |
924 | 930 | ||
925 | connect(m_View, SIGNAL(currentChanged(QListViewItem *) ), | 931 | connect(m_View, SIGNAL(clicked(QListViewItem *) ), |
932 | // connect(m_View, SIGNAL(currentChanged(QListViewItem *) ), | ||
926 | this, SLOT(slotCurrentChanged(QListViewItem * ) ) ); | 933 | this, SLOT(slotCurrentChanged(QListViewItem * ) ) ); |
927 | 934 | ||
928 | connect(m_View, SIGNAL(mouseButtonClicked(int, QListViewItem*, const QPoint &, int) ), | 935 | connect(m_View, SIGNAL(mouseButtonClicked(int, QListViewItem*, const QPoint &, int) ), |