-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index fed15b4..1083f23 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -143,10 +143,10 @@ AdvancedFm::AdvancedFm( ) | |||
143 | 143 | ||
144 | Local_View = new QListView( tab, "Local_View" ); | 144 | Local_View = new QListView( tab, "Local_View" ); |
145 | // Local_View->setResizePolicy( QListView::AutoOneFit ); | 145 | // Local_View->setResizePolicy( QListView::AutoOneFit ); |
146 | Local_View->addColumn( tr("File"),140); | 146 | Local_View->addColumn( tr("File"),130); |
147 | Local_View->addColumn( tr("Date"),-1); | ||
148 | Local_View->setColumnAlignment(1,QListView::AlignRight); | ||
149 | Local_View->addColumn( tr("Size"),-1); | 147 | Local_View->addColumn( tr("Size"),-1); |
148 | Local_View->setColumnAlignment(1,QListView::AlignRight); | ||
149 | Local_View->addColumn( tr("Date"),-1); | ||
150 | Local_View->setColumnAlignment(2,QListView::AlignRight); | 150 | Local_View->setColumnAlignment(2,QListView::AlignRight); |
151 | Local_View->setAllColumnsShowFocus(TRUE); | 151 | Local_View->setAllColumnsShowFocus(TRUE); |
152 | // Local_View->setMultiSelection( TRUE ); | 152 | // Local_View->setMultiSelection( TRUE ); |
@@ -168,10 +168,10 @@ AdvancedFm::AdvancedFm( ) | |||
168 | tabLayout_2->setMargin( 2); | 168 | tabLayout_2->setMargin( 2); |
169 | 169 | ||
170 | Remote_View = new QListView( tab_2, "Remote_View" ); | 170 | Remote_View = new QListView( tab_2, "Remote_View" ); |
171 | Remote_View->addColumn( tr("File"),140); | 171 | Remote_View->addColumn( tr("File"),130); |
172 | Remote_View->addColumn( tr("Date"),-1); | ||
173 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | ||
174 | Remote_View->addColumn( tr("Size"),-1); | 172 | Remote_View->addColumn( tr("Size"),-1); |
173 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | ||
174 | Remote_View->addColumn( tr("Date"),-1); | ||
175 | Remote_View->setColumnAlignment(2,QListView::AlignRight); | 175 | Remote_View->setColumnAlignment(2,QListView::AlignRight); |
176 | Remote_View->setAllColumnsShowFocus(TRUE); | 176 | Remote_View->setAllColumnsShowFocus(TRUE); |
177 | // Remote_View->setMultiSelection( TRUE ); | 177 | // Remote_View->setMultiSelection( TRUE ); |
@@ -301,7 +301,7 @@ void AdvancedFm::populateLocalView() | |||
301 | } | 301 | } |
302 | } | 302 | } |
303 | if(fileL !="./" && fi->exists()) { | 303 | if(fileL !="./" && fi->exists()) { |
304 | item= new QListViewItem( Local_View, fileL , fileDate, fileS); | 304 | item= new QListViewItem( Local_View, fileL, fileS , fileDate); |
305 | 305 | ||
306 | if(isDir || fileL.find("/",0,TRUE) != -1) { | 306 | if(isDir || fileL.find("/",0,TRUE) != -1) { |
307 | if( !QDir( fi->filePath() ).isReadable()) | 307 | if( !QDir( fi->filePath() ).isReadable()) |
@@ -354,7 +354,7 @@ void AdvancedFm::populateLocalView() | |||
354 | // fileS.sprintf("%d,%d", devT, devT); | 354 | // fileS.sprintf("%d,%d", devT, devT); |
355 | fileDate.sprintf("%s", ctime( &buf.st_mtime)); | 355 | fileDate.sprintf("%s", ctime( &buf.st_mtime)); |
356 | if( fileL.find(".") == -1 ){ | 356 | if( fileL.find(".") == -1 ){ |
357 | item= new QListViewItem( Local_View, fileL, fileDate, fileS); | 357 | item= new QListViewItem( Local_View, fileL, fileS, fileDate); |
358 | pm = Resource::loadPixmap( "UnknownDocument-14" ); | 358 | pm = Resource::loadPixmap( "UnknownDocument-14" ); |
359 | item->setPixmap( 0,pm); | 359 | item->setPixmap( 0,pm); |
360 | } | 360 | } |
@@ -408,7 +408,7 @@ void AdvancedFm::populateRemoteView() | |||
408 | } | 408 | } |
409 | } | 409 | } |
410 | if(fileL !="./" && fi->exists()) { | 410 | if(fileL !="./" && fi->exists()) { |
411 | item= new QListViewItem( Remote_View, fileL, fileDate, fileS); | 411 | item= new QListViewItem( Remote_View, fileL, fileS, fileDate); |
412 | QPixmap pm; | 412 | QPixmap pm; |
413 | 413 | ||
414 | if(isDir || fileL.find("/",0,TRUE) != -1) { | 414 | if(isDir || fileL.find("/",0,TRUE) != -1) { |
@@ -459,7 +459,7 @@ void AdvancedFm::populateRemoteView() | |||
459 | fileS.sprintf("%d,%d", (int) (buf.st_dev>>8)&0xFF, (int) buf.st_dev &0xFF); | 459 | fileS.sprintf("%d,%d", (int) (buf.st_dev>>8)&0xFF, (int) buf.st_dev &0xFF); |
460 | fileDate.sprintf("%s", ctime( &buf.st_mtime)); | 460 | fileDate.sprintf("%s", ctime( &buf.st_mtime)); |
461 | if( fileL.find(".") == -1 ){ | 461 | if( fileL.find(".") == -1 ){ |
462 | item= new QListViewItem( Remote_View, fileL, fileDate, fileS); | 462 | item= new QListViewItem( Remote_View, fileL, fileS, fileDate); |
463 | pm = Resource::loadPixmap( "UnknownDocument-14" ); | 463 | pm = Resource::loadPixmap( "UnknownDocument-14" ); |
464 | item->setPixmap( 0,pm); | 464 | item->setPixmap( 0,pm); |
465 | } | 465 | } |