diff options
author | Arno <arno@disconnect.de> | 2015-06-06 14:00:23 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2015-06-06 14:00:23 +0200 |
commit | 230feb71ce37cd6797e94247fab463841c7637cf (patch) | |
tree | c968479a19bbe1a3b92b0a99c5322ce097d0c2b0 /mappingtreewidget.cpp | |
parent | e6fca86d22dcae7a3aec664c89efda80a1ee8aad (diff) | |
download | SheMov-230feb71ce37cd6797e94247fab463841c7637cf.tar.gz SheMov-230feb71ce37cd6797e94247fab463841c7637cf.tar.bz2 SheMov-230feb71ce37cd6797e94247fab463841c7637cf.zip |
Accept NewPicsDialog with CTRL+Enter
Diffstat (limited to 'mappingtreewidget.cpp')
-rw-r--r-- | mappingtreewidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mappingtreewidget.cpp b/mappingtreewidget.cpp index ebd244e..bc64d0e 100644 --- a/mappingtreewidget.cpp +++ b/mappingtreewidget.cpp @@ -304,6 +304,9 @@ void MappingTreeView::keyPressEvent(QKeyEvent *e){ emit shiftFocus(); return; } + if(e->key() == Qt::Key_Return && (e->modifiers() & Qt::ControlModifier)){ + emit acceptPics(); + } if(e->key() == Qt::Key_Right){ emit addMapping(); } @@ -343,7 +346,6 @@ MappingEditWidget::MappingEditWidget(QWidget *parent) : QWidget(parent){ connect(mMappingTree->mappingTreeView(), SIGNAL(addMapping()), this, SLOT(addMapping())); connect(mMappingTree->mappingTreeView(), SIGNAL(clearMappings()), this, SLOT(clearMapping())); connect(mMappingTree->mappingTreeView(), SIGNAL(shiftFocus()), this, SLOT(shiftFocusResult())); - connect(mMappingTree->mappingTreeView(), SIGNAL(addActor()), this, SLOT(addActor())); connect(mMappingResult, SIGNAL(shiftFocus()), this, SLOT(shiftFocusMappings())); connect(mMappingResult, SIGNAL(removeMapping()), this, SLOT(removeMapping())); |