2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-03 13:26:03 +00:00

Notifications settings done: screen corner selection + max count.

This commit is contained in:
John Preston
2016-10-06 19:41:09 +03:00
parent e7b6d7b498
commit 16ce28f4d2
13 changed files with 594 additions and 133 deletions

View File

@@ -59,8 +59,7 @@ void ScaleWidget::createControls() {
_scale->addSection(scaleLabel(dbisOneAndHalf));
_scale->addSection(scaleLabel(dbisTwo));
_scale->setActiveSectionFast(cEvalScale(cConfigScale()) - 1);
connect(_scale, SIGNAL(sectionActivated()), this, SLOT(onSectionActivated()));
_scale->setSectionActivatedCallback([this] { scaleChanged(); });
}
void ScaleWidget::onAutoChosen() {
@@ -102,7 +101,7 @@ void ScaleWidget::setScale(DBIScale newScale) {
}
}
void ScaleWidget::onSectionActivated() {
void ScaleWidget::scaleChanged() {
auto newScale = dbisAuto;
switch (_scale->activeSection()) {
case 0: newScale = dbisOne; break;