-rw-r--r-- | microkde/microkde.pro | 2 | ||||
-rw-r--r-- | microkde/ofileselector_p.cpp | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 71d662b..21da158 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -78,13 +78,12 @@ KDGanttMinimizeSplitter.h \ | |||
78 | kresources/manager.h \ | 78 | kresources/manager.h \ |
79 | kresources/selectdialog.h \ | 79 | kresources/selectdialog.h \ |
80 | kresources/configpage.h \ | 80 | kresources/configpage.h \ |
81 | kresources/configwidget.h \ | 81 | kresources/configwidget.h \ |
82 | kresources/configdialog.h \ | 82 | kresources/configdialog.h \ |
83 | kresources/kcmkresources.h \ | 83 | kresources/kcmkresources.h \ |
84 | kresources/syncwidget.h \ | ||
85 | kdecore/kmdcodec.h \ | 84 | kdecore/kmdcodec.h \ |
86 | kdecore/kconfigbase.h \ | 85 | kdecore/kconfigbase.h \ |
87 | kdecore/klocale.h \ | 86 | kdecore/klocale.h \ |
88 | kdecore/kcatalogue.h \ | 87 | kdecore/kcatalogue.h \ |
89 | kdecore/ksharedptr.h \ | 88 | kdecore/ksharedptr.h \ |
90 | kdecore/kshell.h \ | 89 | kdecore/kshell.h \ |
@@ -157,13 +156,12 @@ KDGanttMinimizeSplitter.cpp \ | |||
157 | kresources/configwidget.cpp \ | 156 | kresources/configwidget.cpp \ |
158 | kresources/factory.cpp \ | 157 | kresources/factory.cpp \ |
159 | kresources/kcmkresources.cpp \ | 158 | kresources/kcmkresources.cpp \ |
160 | kresources/managerimpl.cpp \ | 159 | kresources/managerimpl.cpp \ |
161 | kresources/resource.cpp \ | 160 | kresources/resource.cpp \ |
162 | kresources/selectdialog.cpp \ | 161 | kresources/selectdialog.cpp \ |
163 | kresources/syncwidget.cpp \ | ||
164 | kutils/kcmultidialog.cpp \ | 162 | kutils/kcmultidialog.cpp \ |
165 | kdeui/kaction.cpp \ | 163 | kdeui/kaction.cpp \ |
166 | kdeui/kactionclasses.cpp \ | 164 | kdeui/kactionclasses.cpp \ |
167 | kdeui/kactioncollection.cpp \ | 165 | kdeui/kactioncollection.cpp \ |
168 | kdeui/kmainwindow.cpp \ | 166 | kdeui/kmainwindow.cpp \ |
169 | kdeui/ktoolbar.cpp \ | 167 | kdeui/ktoolbar.cpp \ |
diff --git a/microkde/ofileselector_p.cpp b/microkde/ofileselector_p.cpp index cf6074d..fd5f965 100644 --- a/microkde/ofileselector_p.cpp +++ b/microkde/ofileselector_p.cpp | |||
@@ -17,12 +17,14 @@ | |||
17 | #undef private | 17 | #undef private |
18 | 18 | ||
19 | #include <qpe/qpeapplication.h> | 19 | #include <qpe/qpeapplication.h> |
20 | #include <qpe/mimetype.h> | 20 | #include <qpe/mimetype.h> |
21 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
22 | #include <qpe/storage.h> | 22 | #include <qpe/storage.h> |
23 | #include <kglobal.h> | ||
24 | #include <klocale.h> | ||
23 | 25 | ||
24 | #include "ofileselector_p.h" | 26 | #include "ofileselector_p.h" |
25 | //US#include "ofileselector.h" | 27 | //US#include "ofileselector.h" |
26 | 28 | ||
27 | #include "klocale.h" | 29 | #include "klocale.h" |
28 | 30 | ||
@@ -464,13 +466,14 @@ void OFileViewFileListView::addFile( QFileInfo* info, bool symlink ) { | |||
464 | if ( ( (selector()->mode() == OFileSelector::Open)&& !info->isReadable() ) || | 466 | if ( ( (selector()->mode() == OFileSelector::Open)&& !info->isReadable() ) || |
465 | ( (selector()->mode() == OFileSelector::Save)&& !info->isWritable() ) ) { | 467 | ( (selector()->mode() == OFileSelector::Save)&& !info->isWritable() ) ) { |
466 | locked = true; pix = Resource::loadPixmap("locked"); | 468 | locked = true; pix = Resource::loadPixmap("locked"); |
467 | } | 469 | } |
468 | } | 470 | } |
469 | (void)new OFileSelectorItem( m_view, pix, name, | 471 | (void)new OFileSelectorItem( m_view, pix, name, |
470 | info->lastModified().toString(), QString::number( info->size() ), | 472 | KGlobal::locale()->formatDateTime(info->lastModified(),true, true, KLocale::ISODate), |
473 | QString::number( info->size() ), | ||
471 | dir, locked ); | 474 | dir, locked ); |
472 | } | 475 | } |
473 | void OFileViewFileListView::addDir( QFileInfo* info, bool symlink ) { | 476 | void OFileViewFileListView::addDir( QFileInfo* info, bool symlink ) { |
474 | bool locked = false; QString name; QPixmap pix; | 477 | bool locked = false; QString name; QPixmap pix; |
475 | 478 | ||
476 | if ( ( ( selector()->mode() == OFileSelector::Open ) && !info->isReadable() ) || | 479 | if ( ( ( selector()->mode() == OFileSelector::Open ) && !info->isReadable() ) || |
@@ -484,13 +487,13 @@ void OFileViewFileListView::addDir( QFileInfo* info, bool symlink ) { | |||
484 | pix = symlink ? Resource::loadPixmap( "symlink") : Resource::loadPixmap("folder"); | 487 | pix = symlink ? Resource::loadPixmap( "symlink") : Resource::loadPixmap("folder"); |
485 | 488 | ||
486 | name = symlink ? info->fileName() + " -> " + info->dirPath(true) + "/" + info->readLink() : | 489 | name = symlink ? info->fileName() + " -> " + info->dirPath(true) + "/" + info->readLink() : |
487 | info->fileName(); | 490 | info->fileName(); |
488 | 491 | ||
489 | (void)new OFileSelectorItem( m_view, pix, name, | 492 | (void)new OFileSelectorItem( m_view, pix, name, |
490 | info->lastModified().toString(), | 493 | KGlobal::locale()->formatDateTime(info->lastModified(),true, true, KLocale::ISODate), |
491 | QString::number( info->size() ), | 494 | QString::number( info->size() ), |
492 | info->dirPath( true ), locked, true ); | 495 | info->dirPath( true ), locked, true ); |
493 | 496 | ||
494 | 497 | ||
495 | } | 498 | } |
496 | void OFileViewFileListView::addSymlink( QFileInfo* , bool ) { | 499 | void OFileViewFileListView::addSymlink( QFileInfo* , bool ) { |