forked from NoisyWinds/Wallpaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallpaper.h
50 lines (44 loc) · 1.05 KB
/
wallpaper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef WALLPAPER_H
#define WALLPAPER_H
#include <QMainWindow>
#include <QtWebEngineWidgets>
#include <QJsonObject>
#include <QJsonDocument>
namespace Ui {
class Wallpaper;
}
class Wallpaper : public QMainWindow
{
Q_OBJECT
public:
explicit Wallpaper(QWidget *parent = 0);
~Wallpaper();
public:
void createActions();
void createMenu();
public:
QSystemTrayIcon *mSysTrayIcon;
QMenu *mMenu;
QAction *mShowWindow;
QAction *mExitAppAction;
QWebEngineView *view;
private slots:
void on_path_button_clicked();
void on_hoverButton_clicked();
void on_fillButton_clicked();
void on_secondButton_clicked();
void on_firstButton_clicked();
void on_activatedSysTrayIcon(QSystemTrayIcon::ActivationReason reason);
void on_showMainAction();
void on_exitAppAction();
void on_filePath_textChanged(const QString &arg1);
private:
bool isHover;
HHOOK hook;
Ui::Wallpaper *ui;
QJsonObject obj;
void closeEvent(QCloseEvent *event);
void init();
HWND workerW;
};
#endif // WALLPAPER_H