ui: added shortcut to refresh view

Added a refresh shortcut to the new View menu, that causes stylesheets to be refreshed by dispatching a MessageRefresh.
This commit is contained in:
Eberhard Graether
2014-07-21 17:49:41 +02:00
parent 0074db86e8
commit 5d201b9880
15 changed files with 117 additions and 4 deletions
@@ -43,6 +43,11 @@ void SearchController::handleMessage(MessageFinishedParsing* message)
getView()->setAutocompletionList(m_graphAccess->getNamesForNodesWithNamePrefix(""));
}
void SearchController::handleMessage(MessageRefresh* message)
{
getView()->refreshView();
}
SearchView* SearchController::getView()
{
return Controller::getView<SearchView>();