fixed typoes in code, added layout metadata to new settings toggle.

This commit is contained in:
Aidan Hahn 2019-09-01 16:10:11 -07:00
parent a1c2aed36a
commit 1e6fc6e342
No known key found for this signature in database
GPG key ID: 327711E983899316

View file

@ -133,6 +133,7 @@ UserSettings::save()
settings.setValue("emoji_font_family", emojiFont_); settings.setValue("emoji_font_family", emojiFont_);
settings.endGroup(); settings.endGroup();
} }
HorizontalLine::HorizontalLine(QWidget *parent) HorizontalLine::HorizontalLine(QWidget *parent)
@ -204,7 +205,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
avatarCircles_ = new Toggle(this); avatarCircles_ = new Toggle(this);
avatarViewLayout->addWidget(avatarViewLabel); avatarViewLayout->addWidget(avatarViewLabel);
avatarViewLayout->addWidget(avatarCircles_); avatarViewLayout->addWidget(avatarCircles_, 0, Qt::AlignRight);
auto typingLayout = new QHBoxLayout; auto typingLayout = new QHBoxLayout;
typingLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin); typingLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
@ -464,7 +465,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
settings_->setGroupView(!isDisabled); settings_->setGroupView(!isDisabled);
}); });
connect(groupViewToggle_, &Toggle::toggled, this, [this](bool isDisabled) { connect(avatarCircles_, &Toggle::toggled, this, [this](bool isDisabled) {
settings_->setAvatarCircles(!isDisabled); settings_->setAvatarCircles(!isDisabled);
}); });