author | zautrix <zautrix> | 2005-06-18 18:03:50 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-18 18:03:50 (UTC) |
commit | 3d86c369e8b48b340e4093b034f1347defea876b (patch) (unidiff) | |
tree | 50becb886d75770ce35108f4f97837b6b9d5664f /microkde | |
parent | 45c93de5a458e7ca0c293eebe504a9d949cc045c (diff) | |
download | kdepimpi-3d86c369e8b48b340e4093b034f1347defea876b.zip kdepimpi-3d86c369e8b48b340e4093b034f1347defea876b.tar.gz kdepimpi-3d86c369e8b48b340e4093b034f1347defea876b.tar.bz2 |
file dialog fixes
-rw-r--r-- | microkde/ofileselector_p.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/microkde/ofileselector_p.cpp b/microkde/ofileselector_p.cpp index e2af32b..488dee2 100644 --- a/microkde/ofileselector_p.cpp +++ b/microkde/ofileselector_p.cpp | |||
@@ -157,16 +157,17 @@ OFileSelectorItem::OFileSelectorItem( QListView* view, const QPixmap& pixmap, | |||
157 | : QListViewItem( view ) | 157 | : QListViewItem( view ) |
158 | { | 158 | { |
159 | 159 | ||
160 | QString kind; | 160 | QString kind = "dir";; |
161 | QString _path = path; | 161 | QString _path = path; |
162 | if ( isDir ) | 162 | if ( !isDir ){ |
163 | kind = "dir"; | 163 | int arrow = path.findRev( "." ,-1); |
164 | else | 164 | if (arrow > 0 ) { |
165 | kind = "file"; | 165 | kind = path.mid(arrow+1); |
166 | } | ||
167 | } | ||
166 | setPixmap(0, pixmap ); | 168 | setPixmap(0, pixmap ); |
167 | int arrow = path.find( "->" ); | 169 | int arrow = path.find( "->" ); |
168 | if (arrow > 0 ) { | 170 | if (arrow > 0 ) { |
169 | kind += path.mid( arrow ); | ||
170 | _path = path.left(arrow); | 171 | _path = path.left(arrow); |
171 | } | 172 | } |
172 | setText(1, _path ); | 173 | setText(1, _path ); |
@@ -291,9 +292,9 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st | |||
291 | QPEApplication::setStylusOperation( m_view->viewport(), | 292 | QPEApplication::setStylusOperation( m_view->viewport(), |
292 | QPEApplication::RightOnHold); | 293 | QPEApplication::RightOnHold); |
293 | m_view->addColumn(" " ); | 294 | m_view->addColumn(" " ); |
294 | m_view->addColumn(i18n("Name"), 135 ); | 295 | m_view->addColumn(i18n("Name"), 150 ); |
295 | m_view->addColumn(i18n("Size"), -1 ); | 296 | m_view->addColumn(i18n("Size"), -1 ); |
296 | m_view->addColumn(i18n("Date"), 60 ); | 297 | m_view->addColumn(i18n("Date"), -1 ); |
297 | m_view->addColumn(i18n("Mime Type"), -1 ); | 298 | m_view->addColumn(i18n("Mime Type"), -1 ); |
298 | 299 | ||
299 | 300 | ||