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
+8 -6
View File
@@ -181,15 +181,17 @@ QVBoxLayout *SettingsDialog::createAppearanceTab()
{
auto &fontManager = FontManager::getInstance();
fontManager.currentFontFamily.getValueChangedSignal().connect(
[fontFamilyLabel](const std::string &newValue) {
fontManager.currentFontFamily.connect(
[fontFamilyLabel](const std::string &newValue, auto) {
fontFamilyLabel->setText(QString::fromStdString(newValue)); //
});
},
this->managedConnections);
fontManager.currentFontSize.getValueChangedSignal().connect(
[fontSizeLabel](const int &newValue) {
fontManager.currentFontSize.connect(
[fontSizeLabel](const int &newValue, auto) {
fontSizeLabel->setText(QString(QString::number(newValue))); //
});
},
this->managedConnections);
}
fontButton->connect(fontButton, &QPushButton::clicked, []() {