aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-07-20 15:36:05 -0400
committerKen Moore <moorekou@gmail.com>2015-07-20 15:36:05 -0400
commit5c96c76e23dc0f00b2f958f4ae86528ed04083e4 (patch)
tree265991bd5ee6c840f230462aacb2f12d97062f7c /lumina-fm/MainUI.cpp
parentFix up a calculation of the new window geometry - add in checks for those str... (diff)
downloadlumina-5c96c76e23dc0f00b2f958f4ae86528ed04083e4.tar.gz
lumina-5c96c76e23dc0f00b2f958f4ae86528ed04083e4.tar.bz2
lumina-5c96c76e23dc0f00b2f958f4ae86528ed04083e4.zip
Add the Ctrl-X keyboard shortcut for Cutting the selected files onto the Clipboard.
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r--lumina-fm/MainUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index 1c832b1a..fe9be78b 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -104,6 +104,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
closeTabShort = new QShortcut( QKeySequence(tr("Ctrl+W")), this);
copyFilesShort = new QShortcut( QKeySequence(tr("Ctrl+C")), this);
pasteFilesShort = new QShortcut( QKeySequence(tr("Ctrl+V")), this);
+ cutFilesShort = new QShortcut( QKeySequence(tr("Ctrl+X")), this);
deleteFilesShort = new QShortcut( QKeySequence(tr("Delete")), this);
//Finish loading the interface
workThread->start();
@@ -285,6 +286,7 @@ void MainUI::setupConnections(){
connect(nextTabRShort, SIGNAL(activated()), this, SLOT( nextTab() ) );
connect(closeTabShort, SIGNAL(activated()), this, SLOT( tabClosed() ) );
connect(copyFilesShort, SIGNAL(activated()), this, SLOT( CopyItems() ) );
+ connect(cutFilesShort, SIGNAL(activated()), this, SLOT( CutItems() ) );
connect(pasteFilesShort, SIGNAL(activated()), this, SLOT( PasteItems() ) );
connect(deleteFilesShort, SIGNAL(activated()), this, SLOT( RemoveItem() ) );
}
bgstack15