ui: added shortcut and menu item for "To overview" and updated documentation

This commit is contained in:
Eberhard Graether
2016-04-13 13:45:39 +02:00
parent ad8abd9182
commit 8d2709a2ad
7 changed files with 42 additions and 6 deletions
+2 -4
View File
@@ -24,7 +24,7 @@ QtSearchBar::QtSearchBar()
m_homeButton = new QPushButton(this);
m_homeButton->setObjectName("home_button");
m_homeButton->setToolTip("show overview");
m_homeButton->setToolTip("to overview");
m_homeButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); // fixes layouting on Mac
layout->addWidget(m_homeButton);
connect(m_homeButton, SIGNAL(clicked()), this, SLOT(homeButtonClicked()));
@@ -112,7 +112,5 @@ void QtSearchBar::refreshStyle()
void QtSearchBar::homeButtonClicked()
{
SearchMatch match = SearchMatch::createCommand(SearchMatch::COMMAND_ALL);
MessageSearch msg(std::vector<SearchMatch>(1, match));
msg.dispatch();
MessageSearch(std::vector<SearchMatch>(1, SearchMatch::createCommand(SearchMatch::COMMAND_ALL))).dispatch();
}