summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/filebrowser/filebrowser.cpp8
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
@@ -205,15 +205,12 @@ void FileView::resizeEvent( QResizeEvent *e )
205 setColumnWidth( 3, 0 ); 205 setColumnWidth( 3, 0 );
206 QListView::resizeEvent( e ); 206 QListView::resizeEvent( e );
207} 207}
208 208
209void FileView::updateDir() 209void FileView::updateDir()
210{ 210{
211 setCaption( "Boogie on boogieboy");
212 //qDebug("Caption should be "+currentDir);
213
214 generateDir( currentDir ); 211 generateDir( currentDir );
215} 212}
216 213
217void FileView::setDir( const QString & dir ) 214void FileView::setDir( const QString & dir )
218{ 215{
219 if ( dir.startsWith( "/dev" ) ) { 216 if ( dir.startsWith( "/dev" ) ) {
@@ -719,13 +716,14 @@ void FileBrowser::init(const QString & dir)
719 sortMenu->insertItem( tr( "by Date "), this, SLOT( sortDate() ) ); 716 sortMenu->insertItem( tr( "by Date "), this, SLOT( sortDate() ) );
720 sortMenu->insertItem( tr( "by Type "), this, SLOT( sortType() ) ); 717 sortMenu->insertItem( tr( "by Type "), this, SLOT( sortType() ) );
721 sortMenu->insertSeparator(); 718 sortMenu->insertSeparator();
722 sortMenu->insertItem( tr( "Ascending" ), this, SLOT( updateSorting() ) ); 719 sortMenu->insertItem( tr( "Ascending" ), this, SLOT( updateSorting() ) );
723 sortMenu->insertSeparator(); 720 sortMenu->insertSeparator();
724 sortMenu->insertItem( tr( "Show Hidden "), this, SLOT( showHidden() ) ); 721 sortMenu->insertItem( tr( "Show Hidden "), this, SLOT( showHidden() ) );
725 fileView->showingHidden=FALSE; 722
723// fileView->showingHidden=FALSE;
726 724
727 sortMenu->setItemChecked( sortMenu->idAt( 5 ), TRUE ); 725 sortMenu->setItemChecked( sortMenu->idAt( 5 ), TRUE );
728 sortMenu->setItemChecked( sortMenu->idAt( 0 ), TRUE ); 726 sortMenu->setItemChecked( sortMenu->idAt( 0 ), TRUE );
729 727
730 toolBar = new QPEToolBar( this ); 728 toolBar = new QPEToolBar( this );
731 729
@@ -870,13 +868,13 @@ void FileBrowser::updateSorting()
870 sortDate(); 868 sortDate();
871 else 869 else
872 sortType(); 870 sortType();
873} 871}
874 872
875void FileBrowser::showHidden() { 873void FileBrowser::showHidden() {
876 if(! fileView->showingHidden) { 874 if(!fileView->showingHidden) {
877 fileView->showingHidden=TRUE; 875 fileView->showingHidden=TRUE;
878 sortMenu->setItemChecked( sortMenu->idAt( 7),TRUE); 876 sortMenu->setItemChecked( sortMenu->idAt( 7),TRUE);
879 } else { 877 } else {
880 fileView->showingHidden=FALSE; 878 fileView->showingHidden=FALSE;
881 sortMenu->setItemChecked( sortMenu->idAt( 7),FALSE); 879 sortMenu->setItemChecked( sortMenu->idAt( 7),FALSE);
882 } 880 }