Replace QDesktopWidget in OSDPretty

This commit is contained in:
Jonas Kvinge
2019-07-09 19:49:15 +02:00
parent aa8679dff5
commit 656130a739
3 changed files with 124 additions and 64 deletions

View File

@@ -194,6 +194,7 @@ void NotificationsSettingsPage::Load() {
ui_->notifications_bg_preset->setItemData(2, QColor(color), Qt::DecorationRole);
ui_->notifications_disable_duration->setChecked(pretty_popup_->disable_duration());
UpdatePopupVisible();
}
void NotificationsSettingsPage::Save() {
@@ -223,11 +224,12 @@ void NotificationsSettingsPage::Save() {
s.setValue("foreground_color", pretty_popup_->foreground_color());
s.setValue("background_color", pretty_popup_->background_color());
s.setValue("background_opacity", pretty_popup_->background_opacity());
s.setValue("popup_display", pretty_popup_->popup_display());
s.setValue("popup_screen", pretty_popup_->popup_screen());
s.setValue("popup_pos", pretty_popup_->popup_pos());
s.setValue("font", pretty_popup_->font().toString());
s.setValue("disable_duration", ui_->notifications_disable_duration->isChecked());
s.endGroup();
}
void NotificationsSettingsPage::PrettyOpacityChanged(int value) {