aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/widgets
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-12-23 09:39:25 -0500
committerKen Moore <ken@ixsystems.com>2016-12-23 09:39:25 -0500
commiteeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef (patch)
treef88a66c98ecbd6f9c17870e211f3703e8ba28b3c /src-qt5/desktop-utils/lumina-fm/widgets
parentAdjust the QMenu padding to use "em" values instead of "px" values. This shou... (diff)
parentMerge pull request #332 from q5sys/master (diff)
downloadlumina-eeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef.tar.gz
lumina-eeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef.tar.bz2
lumina-eeac1cbe5da8411f5575aa47ae2d84e9bc70b7ef.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index 48ad6aa5..9b26e2e5 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -239,7 +239,7 @@ void DirWidget::createMenus(){
cOpenMenu->addAction(LXDG::findIcon("utilities-terminal",""), tr("Terminal"), this, SLOT(openTerminal()), kOpTerm->key());
cOpenMenu->addAction(LXDG::findIcon("view-preview",""), tr("SlideShow"), this, SLOT(openInSlideshow()), kOpSS->key());
cOpenMenu->addAction(LXDG::findIcon("view-media-lyrics","media-playback-start"), tr("Multimedia Player"), this, SLOT(openMultimedia()), kOpMM->key());
-
+/*
if(cFModMenu==0){ cFModMenu = new QMenu(this); }
else{ cFModMenu->clear(); }
cFModMenu->setTitle(tr("Modify Files..."));
@@ -250,7 +250,7 @@ void DirWidget::createMenus(){
cFModMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename..."), this, SLOT(renameFiles()), kRename->key() );
cFModMenu->addSeparator();
cFModMenu->addAction(LXDG::findIcon("edit-delete",""), tr("Delete Selection"), this, SLOT(removeFiles()), kDel->key() );
-
+*/
if(cFViewMenu==0){ cFViewMenu = new QMenu(this); }
else{ cFViewMenu->clear(); }
cFViewMenu->setTitle(tr("View Files..."));
@@ -486,11 +486,18 @@ void DirWidget::UpdateContextMenu(){
contextMenu->addAction(LXDG::findIcon("run-build-configure",""), tr("Open With..."), this, SLOT(runWithFiles()) );
}
contextMenu->addSection(LXDG::findIcon("unknown",""), tr("File Operations"));
- contextMenu->addMenu(cFModMenu);
- cFModMenu->setEnabled(!sel.isEmpty() && canmodify);
+ // contextMenu->addMenu(cFModMenu);
+ // cFModMenu->setEnabled(!sel.isEmpty() && canmodify);
contextMenu->addMenu(cFViewMenu);
- cFViewMenu->setEnabled(!sel.isEmpty());
- contextMenu->addAction(LXDG::findIcon("edit-paste",""), tr("Paste"), this, SLOT(pasteFiles()), QKeySequence(Qt::CTRL+Qt::Key_V) )->setEnabled(QApplication::clipboard()->mimeData()->hasFormat("x-special/lumina-copied-files") && canmodify);
+ contextMenu->setEnabled(!sel.isEmpty());
+ contextMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename..."), this, SLOT(renameFiles()), kRename->key() );
+ contextMenu->addAction(LXDG::findIcon("edit-cut",""), tr("Cut Selection"), this, SLOT(cutFiles()), kCut->key() );
+ contextMenu->addAction(LXDG::findIcon("edit-copy",""), tr("Copy Selection"), this, SLOT(copyFiles()), kCopy->key() );
+ contextMenu->addAction(LXDG::findIcon("edit-paste",""), tr("Paste"), this, SLOT(pasteFiles()), QKeySequence(Qt::CTRL+Qt::Key_V) )->setEnabled(QApplication::clipboard()->mimeData()->hasFormat("x-special/lumina-copied-files") && canmodify);
+ contextMenu->addSeparator();
+ contextMenu->addAction(LXDG::findIcon("edit-delete",""), tr("Delete Selection"), this, SLOT(removeFiles()), kDel->key() );
+ contextMenu->addSeparator();
+
//Now add the general selection options
contextMenu->addSection(LXDG::findIcon("folder","inode/directory"), tr("Directory Operations"));
if(canmodify){
bgstack15