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
@@ -59,6 +59,11 @@ void CodeController::handleMessage(MessageActivateToken* message)
setActiveTokenId(message->tokenId);
}
void CodeController::handleMessage(MessageRefresh* message)
{
getView()->refreshView();
}
CodeView* CodeController::getView()
{
return Controller::getView<CodeView>();