Update settings and signals library version

This commit is contained in:
Rasmus Karlsson
2017-12-17 03:37:46 +01:00
parent c1ac7db24c
commit bb081b710e
16 changed files with 52 additions and 74 deletions
+3 -3
View File
@@ -9,12 +9,12 @@ FontManager::FontManager()
, currentFontSize("/appearance/currentFontSize", 14)
, currentFont(this->currentFontFamily.getValue().c_str(), currentFontSize.getValue())
{
this->currentFontFamily.getValueChangedSignal().connect([this](const std::string &newValue) {
this->currentFontFamily.connect([this](const std::string &newValue, auto) {
this->incGeneration();
this->currentFont.setFamily(newValue.c_str()); //
this->currentFont.setFamily(newValue.c_str());
this->fontChanged.invoke();
});
this->currentFontSize.getValueChangedSignal().connect([this](const int &newValue) {
this->currentFontSize.connect([this](const int &newValue, auto) {
this->incGeneration();
this->currentFont.setSize(newValue);
this->fontChanged.invoke();