-rw-r--r-- | noncore/unsupported/filebrowser/filebrowser.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/noncore/unsupported/filebrowser/filebrowser.cpp b/noncore/unsupported/filebrowser/filebrowser.cpp index d9aabfd..6f82f95 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp @@ -203,19 +203,16 @@ void FileView::resizeEvent( QResizeEvent *e ) // hide type column, we use it for "sort by type" only setColumnWidth( 3, 0 ); QListView::resizeEvent( e ); } void FileView::updateDir() { - setCaption( "Boogie on boogieboy"); - //qDebug("Caption should be "+currentDir); - generateDir( currentDir ); } void FileView::setDir( const QString & dir ) { if ( dir.startsWith( "/dev" ) ) { QMessageBox::warning( this, tr( "File Manager" ), tr( "Can't show /dev/ directory." ), tr( "&Ok" ) ); @@ -717,17 +714,18 @@ void FileBrowser::init(const QString & dir) sortMenu->insertItem( tr( "by Name "), this, SLOT( sortName() ) ); sortMenu->insertItem( tr( "by Size "), this, SLOT( sortSize() ) ); sortMenu->insertItem( tr( "by Date "), this, SLOT( sortDate() ) ); sortMenu->insertItem( tr( "by Type "), this, SLOT( sortType() ) ); sortMenu->insertSeparator(); sortMenu->insertItem( tr( "Ascending" ), this, SLOT( updateSorting() ) ); sortMenu->insertSeparator(); sortMenu->insertItem( tr( "Show Hidden "), this, SLOT( showHidden() ) ); - fileView->showingHidden=FALSE; + +// fileView->showingHidden=FALSE; sortMenu->setItemChecked( sortMenu->idAt( 5 ), TRUE ); sortMenu->setItemChecked( sortMenu->idAt( 0 ), TRUE ); toolBar = new QPEToolBar( this ); lastAction = new QAction( tr("Previous dir"), Resource::loadIconSet( "back" ), QString::null, 0, this, 0 ); @@ -868,17 +866,17 @@ void FileBrowser::updateSorting() sortSize(); else if ( sortMenu->isItemChecked( sortMenu->idAt( 2 ) ) ) sortDate(); else sortType(); } void FileBrowser::showHidden() { - if(! fileView->showingHidden) { + if(!fileView->showingHidden) { fileView->showingHidden=TRUE; sortMenu->setItemChecked( sortMenu->idAt( 7),TRUE); } else { fileView->showingHidden=FALSE; sortMenu->setItemChecked( sortMenu->idAt( 7),FALSE); } fileView->updateDir(); } |