logic: used wstring in FilePath constructor

* used wstring in FilePath constructor where easily possible
* added FilePath concatenate method that accepts string parameter
* implemented using only wstring in MessageStatus
* used wstring in config
This commit is contained in:
mlangkabel
2018-01-30 11:00:23 +01:00
parent 143cf6a02d
commit 0dda63f7ae
157 changed files with 1230 additions and 945 deletions
@@ -154,9 +154,8 @@ void ActivationController::handleMessage(MessageResetZoom* message)
MessageRefresh().refreshUiOnly().dispatch();
}
std::stringstream text;
text << "Font size: " << fontSizeStd;
MessageStatus(text.str()).dispatch();
MessageStatus(L"Font size: " + std::to_wstring(fontSizeStd)).dispatch();
}
void ActivationController::handleMessage(MessageZoom* message)
@@ -178,10 +177,7 @@ void ActivationController::handleMessage(MessageZoom* message)
settings->setFontSize(fontSize + (message->zoomIn ? 1 : -1));
settings->save();
std::stringstream text;
text << "Font size: " << settings->getFontSize();
MessageStatus(text.str()).dispatch();
MessageStatus(L"Font size: " + std::to_wstring(settings->getFontSize())).dispatch();
MessageRefresh().refreshUiOnly().dispatch();
}