summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorMarc Bartholomaeus <marc.bartholomaeus@carmeq.com>2013-04-17 23:03:02 (GMT)
committerAlex Neundorf <neundorf@kde.org>2013-04-24 19:32:42 (GMT)
commit7be2d8acc64e371748b8758f16b7aa6bdaf3fd0f (patch)
treee9688c4d4bd8fde10e0e676ce4986cc4550fa5b3 /Source/QtDialog
parent4ce65e82f5865469f392b0d021da588366bc14c3 (diff)
downloadCMake-7be2d8acc64e371748b8758f16b7aa6bdaf3fd0f.zip
CMake-7be2d8acc64e371748b8758f16b7aa6bdaf3fd0f.tar.gz
CMake-7be2d8acc64e371748b8758f16b7aa6bdaf3fd0f.tar.bz2
cmake-gui: Change shortcut of the search field from Ctrl-F to Alt-E
Ctrl-F is now used by "Find in Output". Signed-off-by: Alex Neundorf <neundorf@kde.org>
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx9
-rw-r--r--Source/QtDialog/CMakeSetupDialog.ui5
2 files changed, 7 insertions, 7 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 0be45c6..fb74aaf 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/Source/QtDialog/CMakeSetupDialog.cxx
@@ -125,7 +125,8 @@ CMakeSetupDialog::CMakeSetupDialog()
#endif
ToolsMenu->addSeparator();
ToolsMenu->addAction(tr("&Find in Output..."),
- this, SLOT(doOutputFindDialog()));
+ this, SLOT(doOutputFindDialog()),
+ QKeySequence::Find);
ToolsMenu->addAction(tr("&Find Next"),
this, SLOT(doOutputFindNext()),
QKeySequence::FindNext);
@@ -165,10 +166,6 @@ CMakeSetupDialog::CMakeSetupDialog()
QObject::connect(a, SIGNAL(triggered(bool)),
this, SLOT(doHelp()));
- QShortcut* filterShortcut = new QShortcut(QKeySequence::Find, this);
- QObject::connect(filterShortcut, SIGNAL(activated()),
- this, SLOT(startSearch()));
-
this->setAcceptDrops(true);
// get the saved binary directories
@@ -1170,7 +1167,7 @@ void CMakeSetupDialog::doOutputContextMenu(const QPoint &pt)
menu->addSeparator();
menu->addAction(tr("Find..."),
- this, SLOT(doOutputFindDialog()));
+ this, SLOT(doOutputFindDialog()), QKeySequence::Find);
menu->addAction(tr("Find Next"),
this, SLOT(doOutputFindNext()), QKeySequence::FindNext);
menu->addAction(tr("Find Previous"),
diff --git a/Source/QtDialog/CMakeSetupDialog.ui b/Source/QtDialog/CMakeSetupDialog.ui
index dc8ee3f..98da249 100644
--- a/Source/QtDialog/CMakeSetupDialog.ui
+++ b/Source/QtDialog/CMakeSetupDialog.ui
@@ -107,7 +107,10 @@
</sizepolicy>
</property>
<property name="text">
- <string>Search:</string>
+ <string>S&amp;earch:</string>
+ </property>
+ <property name="buddy">
+ <cstring>Search</cstring>
</property>
</widget>
</item>