fixed hidpi scaling for the settings window

This commit is contained in:
fourtf
2017-12-18 00:54:17 +01:00
parent 87182d078c
commit 01e9c723fa
7 changed files with 67 additions and 14 deletions
+2 -3
View File
@@ -14,9 +14,6 @@ SettingsDialogTab::SettingsDialogTab(SettingsDialog *_dialog, QString _labelText
this->ui.labelText = _labelText;
this->ui.image.load(imageFileName);
// XXX: DPI (not sure if this is auto-adjusted with custom DPI)
this->setFixedHeight(32);
this->setCursor(QCursor(Qt::PointingHandCursor));
this->setStyleSheet("color: #FFF");
@@ -28,6 +25,8 @@ void SettingsDialogTab::setSelected(bool _selected)
return;
}
// height: <checkbox-size>px;
this->selected = _selected;
emit selectedChanged(selected);
}