summary refs log tree commit diff
path: root/src/UserSettingsPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-20 17:09:11 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-20 17:09:11 +0200
commitf95998a64bebcb12ffe07fcb6f23cdabff434641 (patch)
tree3a2388ebd9a271f59e3c8a8d36bb906c40fe3386 /src/UserSettingsPage.cc
parentScale down the preview image to fit in the application window (diff)
downloadnheko-f95998a64bebcb12ffe07fcb6f23cdabff434641.tar.xz
Be explicit about the captured parameters in lambdas
Diffstat (limited to 'src/UserSettingsPage.cc')
-rw-r--r--src/UserSettingsPage.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/UserSettingsPage.cc b/src/UserSettingsPage.cc

index cff29afd..6c966deb 100644 --- a/src/UserSettingsPage.cc +++ b/src/UserSettingsPage.cc
@@ -204,26 +204,26 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge connect(themeCombo_, static_cast<void (QComboBox::*)(const QString &)>(&QComboBox::activated), - [=](const QString &text) { settings_->setTheme(text.toLower()); }); + [this](const QString &text) { settings_->setTheme(text.toLower()); }); - connect(trayToggle_, &Toggle::toggled, this, [=](bool isDisabled) { + connect(trayToggle_, &Toggle::toggled, this, [this](bool isDisabled) { settings_->setTray(!isDisabled); emit trayOptionChanged(!isDisabled); }); - connect(roomOrderToggle_, &Toggle::toggled, this, [=](bool isDisabled) { + connect(roomOrderToggle_, &Toggle::toggled, this, [this](bool isDisabled) { settings_->setRoomOrdering(!isDisabled); }); - connect(groupViewToggle_, &Toggle::toggled, this, [=](bool isDisabled) { + connect(groupViewToggle_, &Toggle::toggled, this, [this](bool isDisabled) { settings_->setGroupView(!isDisabled); }); - connect(typingNotifications_, &Toggle::toggled, this, [=](bool isDisabled) { + connect(typingNotifications_, &Toggle::toggled, this, [this](bool isDisabled) { settings_->setTypingNotifications(!isDisabled); }); - connect(backBtn_, &QPushButton::clicked, this, [=]() { + connect(backBtn_, &QPushButton::clicked, this, [this]() { settings_->save(); emit moveBack(); });