author | llornkcor <llornkcor> | 2002-04-22 12:11:02 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-22 12:11:02 (UTC) |
commit | e79c930fb498f2bc3387da7133a57cd085244346 (patch) (side-by-side diff) | |
tree | c98e0d3fb6c634bdb4404eebd11d7b532093d927 | |
parent | f4c084cb531d8ee036514e4cfb2fcd0f5ffc6b8c (diff) | |
download | opie-e79c930fb498f2bc3387da7133a57cd085244346.zip opie-e79c930fb498f2bc3387da7133a57cd085244346.tar.gz opie-e79c930fb498f2bc3387da7133a57cd085244346.tar.bz2 |
fixed columns mixup
-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp index d9e2afa..1bb7984 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp @@ -165,50 +165,50 @@ bool FileItem::rename( const QString & name ) oldpath = fileInfo.filePath(); newpath = fileInfo.dirPath() + "/" + name; if ( ::rename( (const char *) oldpath, (const char *) newpath ) != 0 ) return FALSE; else return TRUE; } // // FileView // FileView::FileView( const QString & dir, QWidget * parent, const char * name, bool hidden, bool symlinks ) : QListView( parent, name ), menuTimer( this ), le( NULL ), itemToRename( NULL ), showHidden( hidden ), showSymlinks( symlinks), menuKeepsOpen( FALSE ) { addColumn( "Name" ); - addColumn( "Date" ); addColumn( "Size" ); + addColumn( "Date" ); addColumn( "Type" ); setMultiSelection( TRUE ); //header()->hide(); setColumnWidthMode( 0, Manual ); setColumnWidthMode( 3, Manual ); // right align yize column setColumnAlignment( 1, AlignRight ); generateDir( dir ); connect( this, SIGNAL( clicked( QListViewItem * )), SLOT( itemClicked( QListViewItem * )) ); connect( this, SIGNAL( doubleClicked( QListViewItem * )), SLOT( itemDblClicked( QListViewItem * )) ); connect( this, SIGNAL( selectionChanged() ), SLOT( cancelMenuTimer() ) ); connect( &menuTimer, SIGNAL( timeout() ), SLOT( showFileMenu() ) ); } void FileView::resizeEvent( QResizeEvent *e ) { setColumnWidth( 0, width() - 2 * lineWidth() - 20 - columnWidth( 1 ) - columnWidth( 2 ) ); |