From 9f096f17f19dfdae57d51d81343cb4fecb5beb34 Mon Sep 17 00:00:00 2001 From: keshavbhatt Date: Sun, 11 Apr 2021 02:03:36 +0530 Subject: code clean up and theme switching issue fix, notification pop-up theme fix. --- src/mainwindow.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/mainwindow.h') diff --git a/src/mainwindow.h b/src/mainwindow.h index db8e958..75948e9 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -46,6 +46,11 @@ public slots: void updateWindowTheme(); void updatePageTheme(); + void handleWebViewTitleChanged(QString title); + void handleLoadStarted(); + void handleLoadProgress(int progress); + void handleLoadFinished(bool loaded); + void handleDownloadRequested(QWebEngineDownloadItem *download); protected slots: void closeEvent(QCloseEvent *event) override; @@ -94,10 +99,6 @@ private: private slots: - void handleWebViewTitleChanged(QString title); - void handleLoadStarted(); - void handleLoadProgress(int progress); - void handleDownloadRequested(QWebEngineDownloadItem *download); void iconActivated(QSystemTrayIcon::ActivationReason reason); void messageClicked(); void doReload(); @@ -105,7 +106,6 @@ private slots: void notify(QString title, QString message); void showSettings(); void handleCookieAdded(const QNetworkCookie &cookie); - void handleLoadFinished(bool loaded); QString getPageTheme(); void toggleMute(const bool checked); @@ -124,6 +124,7 @@ private slots: void checkLoadedCorrectly(); void loadingQuirk(QString test); + void setNotificationPresenter(QWebEngineProfile *profile); }; #endif // MAINWINDOW_H -- cgit v1.2.3