-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 384d7da..eaf5eeb 100644 --- a/noncore/unsupported/filebrowser/filebrowser.cpp +++ b/noncore/unsupported/filebrowser/filebrowser.cpp | |||
@@ -633,49 +633,49 @@ void FileView::showFileMenu() | |||
633 | } | 633 | } |
634 | 634 | ||
635 | MimeType mt(i->getFilePath()); | 635 | MimeType mt(i->getFilePath()); |
636 | const AppLnk* app = mt.application(); | 636 | const AppLnk* app = mt.application(); |
637 | 637 | ||
638 | if ( !i->isDir() ) { | 638 | if ( !i->isDir() ) { |
639 | if ( app ) | 639 | if ( app ) |
640 | m->insertItem( app->pixmap(), tr( "Open in " + app->name() ), this, SLOT( run() ) ); | 640 | m->insertItem( app->pixmap(), tr( "Open in " + app->name() ), this, SLOT( run() ) ); |
641 | else if( i->isExecutable() ) | 641 | else if( i->isExecutable() ) |
642 | m->insertItem( Resource::loadPixmap( i->text( 0 ) ), tr( "Run" ), this, SLOT( run() ) ); | 642 | m->insertItem( Resource::loadPixmap( i->text( 0 ) ), tr( "Run" ), this, SLOT( run() ) ); |
643 | 643 | ||
644 | m->insertItem( Resource::loadPixmap( "txt" ), tr( "View as text" ), | 644 | m->insertItem( Resource::loadPixmap( "txt" ), tr( "View as text" ), |
645 | this, SLOT( viewAsText() ) ); | 645 | this, SLOT( viewAsText() ) ); |
646 | 646 | ||
647 | m->insertSeparator(); | 647 | m->insertSeparator(); |
648 | } | 648 | } |
649 | 649 | ||
650 | m->insertItem( tr( "Rename" ), this, SLOT( rename() ) ); | 650 | m->insertItem( tr( "Rename" ), this, SLOT( rename() ) ); |
651 | m->insertItem( Resource::loadPixmap("cut"), | 651 | m->insertItem( Resource::loadPixmap("cut"), |
652 | tr( "Cut" ), this, SLOT( cut() ) ); | 652 | tr( "Cut" ), this, SLOT( cut() ) ); |
653 | m->insertItem( Resource::loadPixmap("copy"), | 653 | m->insertItem( Resource::loadPixmap("copy"), |
654 | tr( "Copy" ), this, SLOT( copy() ) ); | 654 | tr( "Copy" ), this, SLOT( copy() ) ); |
655 | m->insertItem( Resource::loadPixmap("paste"), | 655 | m->insertItem( Resource::loadPixmap("paste"), |
656 | tr( "Paste" ), this, SLOT( paste() ) ); | 656 | tr( "Paste" ), this, SLOT( paste() ) ); |
657 | m->insertItem( tr( "change permissions" ), this, SLOT( chPerm() ) ); | 657 | m->insertItem( tr( "Change Permissions" ), this, SLOT( chPerm() ) ); |
658 | m->insertItem( tr( "Delete" ), this, SLOT( del() ) ); | 658 | m->insertItem( tr( "Delete" ), this, SLOT( del() ) ); |
659 | m->insertSeparator(); | 659 | m->insertSeparator(); |
660 | m->insertItem( tr( "Select all" ), this, SLOT( selectAll() ) ); | 660 | m->insertItem( tr( "Select all" ), this, SLOT( selectAll() ) ); |
661 | m->insertItem( tr( "Deselect all" ), this, SLOT( deselectAll() ) ); | 661 | m->insertItem( tr( "Deselect all" ), this, SLOT( deselectAll() ) ); |
662 | m->popup( QCursor::pos() ); | 662 | m->popup( QCursor::pos() ); |
663 | } | 663 | } |
664 | 664 | ||
665 | // | 665 | // |
666 | // FileBrowser | 666 | // FileBrowser |
667 | // | 667 | // |
668 | 668 | ||
669 | FileBrowser::FileBrowser( QWidget * parent, | 669 | FileBrowser::FileBrowser( QWidget * parent, |
670 | const char * name, WFlags f ) : | 670 | const char * name, WFlags f ) : |
671 | QMainWindow( parent, name, f ) | 671 | QMainWindow( parent, name, f ) |
672 | { | 672 | { |
673 | init( QDir::current().canonicalPath() ); | 673 | init( QDir::current().canonicalPath() ); |
674 | } | 674 | } |
675 | 675 | ||
676 | FileBrowser::FileBrowser( const QString & dir, QWidget * parent, | 676 | FileBrowser::FileBrowser( const QString & dir, QWidget * parent, |
677 | const char * name, WFlags f ) : | 677 | const char * name, WFlags f ) : |
678 | QMainWindow( parent, name, f ) | 678 | QMainWindow( parent, name, f ) |
679 | { | 679 | { |
680 | init( dir ); | 680 | init( dir ); |
681 | } | 681 | } |