Refactoring
This commit is contained in:
@@ -33,6 +33,7 @@ class QAction;
|
||||
class QHideEvent;
|
||||
class QShowEvent;
|
||||
|
||||
class OSDBase;
|
||||
class OSDPretty;
|
||||
class SettingsDialog;
|
||||
class Ui_NotificationsSettingsPage;
|
||||
@@ -41,15 +42,15 @@ class NotificationsSettingsPage : public SettingsPage {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit NotificationsSettingsPage(SettingsDialog *dialog, QWidget *parent = nullptr);
|
||||
explicit NotificationsSettingsPage(SettingsDialog *dialog, OSDBase *osd, QWidget *parent = nullptr);
|
||||
~NotificationsSettingsPage() override;
|
||||
|
||||
void Load() override;
|
||||
void Save() override;
|
||||
|
||||
protected:
|
||||
void hideEvent(QHideEvent*) override;
|
||||
void showEvent(QShowEvent*) override;
|
||||
void hideEvent(QHideEvent *e) override;
|
||||
void showEvent(QShowEvent *e) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void NotificationTypeChanged();
|
||||
@@ -71,6 +72,7 @@ class NotificationsSettingsPage : public SettingsPage {
|
||||
|
||||
private:
|
||||
Ui_NotificationsSettingsPage *ui_;
|
||||
OSDBase *osd_;
|
||||
OSDPretty *pretty_popup_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user