aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 5ffe9b1..e1298b0 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -24,16 +24,15 @@
#include <QWebEngineSettings>
#include <QWebEngineView>
+#include "about.h"
+#include "dictionaries.h"
+#include "downloadmanagerwidget.h"
#include "lock.h"
#include "notificationpopup.h"
+#include "rateapp.h"
#include "requestinterceptor.h"
#include "settingswidget.h"
#include "webenginepage.h"
-
-#include "about.h"
-#include "dictionaries.h"
-#include "downloadmanagerwidget.h"
-#include "rateapp.h"
#include "webview.h"
class MainWindow : public QMainWindow {
@@ -53,9 +52,10 @@ public slots:
protected slots:
void closeEvent(QCloseEvent *event) override;
void resizeEvent(QResizeEvent *event) override;
+ void changeEvent(QEvent *e) override;
private:
- QPalette lightPalette;
+ QPalette lightPalette, darkPalette;
void createActions();
void createTrayIcon();
void createWebEngine();
@@ -87,34 +87,37 @@ private:
private slots:
+ QString getPageTheme();
void iconActivated(QSystemTrayIcon::ActivationReason reason);
void messageClicked();
- void doReload();
+ void doReload(bool byPassCache = false);
void showAbout();
void notify(QString title, QString message);
void showSettings();
void handleCookieAdded(const QNetworkCookie &cookie);
-
- QString getPageTheme();
void toggleMute(const bool &checked);
void doAppReload();
void askToReloadPage();
void updateSettingsUserAgentWidget();
void fullScreenRequested(QWebEngineFullScreenRequest request);
-
void createWebPage(bool offTheRecord = false);
void init_settingWidget();
void init_globalWebProfile();
void check_window_state();
void init_lock();
void lockApp();
-
void checkLoadedCorrectly();
void loadingQuirk(QString test);
void setNotificationPresenter(QWebEngineProfile *profile);
void newChat();
bool isPhoneNumber(const QString &phoneNumber);
void quitApp();
+ void initRateWidget();
+ void initThemes();
+ void handleZoomOnWindowStateChange(QWindowStateChangeEvent *ev);
+ void handleZoom();
+ void change_lock_password();
+ void tryLock();
};
#endif // MAINWINDOW_H