Replace QDesktopWidget in OSDPretty
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user