diff options
author | Ken Moore <moorekou@gmail.com> | 2016-02-02 08:41:52 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-02-02 08:41:52 -0500 |
commit | b0076b4ea912e417f7c12dd87733493b566f70cb (patch) | |
tree | d85446d6f3a471ed49fccb74cedc95dfa3c8fe92 /lumina-fm/widgets | |
parent | Add a few more built-in Qt paths to the OS-detect file, and commit a bit more... (diff) | |
parent | Merge pull request #177 from codersean/master (diff) | |
download | lumina-b0076b4ea912e417f7c12dd87733493b566f70cb.tar.gz lumina-b0076b4ea912e417f7c12dd87733493b566f70cb.tar.bz2 lumina-b0076b4ea912e417f7c12dd87733493b566f70cb.zip |
Merge branch 'master' of github.com:pcbsd/lumina
Diffstat (limited to 'lumina-fm/widgets')
-rw-r--r-- | lumina-fm/widgets/DirWidget.cpp | 10 | ||||
-rw-r--r-- | lumina-fm/widgets/DirWidget.h | 1 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lumina-fm/widgets/DirWidget.cpp b/lumina-fm/widgets/DirWidget.cpp index 46aa2cf3..f7ade48c 100644 --- a/lumina-fm/widgets/DirWidget.cpp +++ b/lumina-fm/widgets/DirWidget.cpp @@ -557,6 +557,10 @@ void DirWidget::UpdateButtons(){ } //Keyboard Shortcuts triggered +void DirWidget::TryRenameSelection(){ + on_tool_act_rename_clicked(); +} + void DirWidget::TryCutSelection(){ on_tool_act_cut_clicked(); } @@ -955,8 +959,8 @@ void DirWidget::OpenContextMenu(){ contextMenu->addAction(LXDG::findIcon("run-build-file",""), tr("Open"), this, SLOT(on_tool_act_run_clicked()) ); contextMenu->addAction(LXDG::findIcon("run-build-configure",""), tr("Open With..."), this, SLOT(on_tool_act_runwith_clicked()) ); - contextMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename"), this, SLOT(on_tool_act_rename_clicked()) )->setEnabled(canmodify); - contextMenu->addAction(LXDG::findIcon("document-encrypted",""), tr("View Checksums"), this, SLOT(fileCheckSums()) ); + contextMenu->addAction(LXDG::findIcon("edit-rename",""), tr("Rename..."), this, SLOT(on_tool_act_rename_clicked()) )->setEnabled(canmodify); + contextMenu->addAction(LXDG::findIcon("document-encrypted",""), tr("View Checksums..."), this, SLOT(fileCheckSums()) ); contextMenu->addSeparator(); } //Now add the general selection options @@ -967,7 +971,7 @@ void DirWidget::OpenContextMenu(){ contextMenu->addAction(LXDG::findIcon("edit-delete",""), tr("Delete Selection"), this, SLOT(on_tool_act_rm_clicked()) )->setEnabled(canmodify&&!sel.isEmpty()); if(LUtils::isValidBinary("lumina-fileinfo")){ contextMenu->addSeparator(); - contextMenu->addAction(LXDG::findIcon("edit-find-replace",""), tr("File Properties"), this, SLOT(fileProperties()) )->setEnabled(!sel.isEmpty()); + contextMenu->addAction(LXDG::findIcon("edit-find-replace",""), tr("File Properties..."), this, SLOT(fileProperties()) )->setEnabled(!sel.isEmpty()); } contextMenu->addSeparator(); contextMenu->addAction(LXDG::findIcon("system-search",""), tr("Open Terminal here"), this, SLOT(openTerminal())); diff --git a/lumina-fm/widgets/DirWidget.h b/lumina-fm/widgets/DirWidget.h index 70936b97..75003681 100644 --- a/lumina-fm/widgets/DirWidget.h +++ b/lumina-fm/widgets/DirWidget.h @@ -72,6 +72,7 @@ public slots: void UpdateButtons(); //Keyboard Shortcuts triggered + void TryRenameSelection(); void TryCutSelection(); void TryCopySelection(); void TryPasteSelection(); |