ui: Changed full text search character to ? and added shortcut CTRL+SHIFT+F

This commit is contained in:
Eberhard Graether
2016-06-13 21:07:14 +02:00
parent b07d03692d
commit 208f2b1158
12 changed files with 69 additions and 20 deletions
+9 -1
View File
@@ -406,6 +406,11 @@ void QtMainWindow::find()
MessageFind().dispatch();
}
void QtMainWindow::findFulltext()
{
MessageFind(true).dispatch();
}
void QtMainWindow::overview()
{
MessageSearch(std::vector<SearchMatch>(1, SearchMatch::createCommand(SearchMatch::COMMAND_ALL))).dispatch();
@@ -600,7 +605,10 @@ void QtMainWindow::setupEditMenu()
}
}
menu->addAction(tr("&Find"), this, SLOT(find()), QKeySequence::Find);
menu->addSeparator();
menu->addAction(tr("&Find Symbol"), this, SLOT(find()), QKeySequence::Find);
menu->addAction(tr("&Find Text"), this, SLOT(findFulltext()), QKeySequence(Qt::SHIFT + Qt::CTRL + Qt::Key_F));
menu->addSeparator();