summaryrefslogtreecommitdiffabout
path: root/microkde
authorzautrix <zautrix>2005-06-18 18:03:50 (UTC)
committer zautrix <zautrix>2005-06-18 18:03:50 (UTC)
commit3d86c369e8b48b340e4093b034f1347defea876b (patch) (side-by-side diff)
tree50becb886d75770ce35108f4f97837b6b9d5664f /microkde
parent45c93de5a458e7ca0c293eebe504a9d949cc045c (diff)
downloadkdepimpi-3d86c369e8b48b340e4093b034f1347defea876b.zip
kdepimpi-3d86c369e8b48b340e4093b034f1347defea876b.tar.gz
kdepimpi-3d86c369e8b48b340e4093b034f1347defea876b.tar.bz2
file dialog fixes
Diffstat (limited to 'microkde') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/ofileselector_p.cpp17
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
@@ -159,8 +159,10 @@ OFileSelectorItem::OFileSelectorItem( QListView* view, const QPixmap& pixmap,
- QString kind;
+ QString kind = "dir";;
QString _path = path;
- if ( isDir )
- kind = "dir";
- else
- kind = "file";
+ if ( !isDir ){
+ int arrow = path.findRev( "." ,-1);
+ if (arrow > 0 ) {
+ kind = path.mid(arrow+1);
+ }
+ }
setPixmap(0, pixmap );
@@ -168,3 +170,2 @@ OFileSelectorItem::OFileSelectorItem( QListView* view, const QPixmap& pixmap,
if (arrow > 0 ) {
- kind += path.mid( arrow );
_path = path.left(arrow);
@@ -293,5 +294,5 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
m_view->addColumn(" " );
- m_view->addColumn(i18n("Name"), 135 );
+ m_view->addColumn(i18n("Name"), 150 );
m_view->addColumn(i18n("Size"), -1 );
- m_view->addColumn(i18n("Date"), 60 );
+ m_view->addColumn(i18n("Date"), -1 );
m_view->addColumn(i18n("Mime Type"), -1 );