forked from RemnantCloude/FlyMessage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FlyMessage.h
49 lines (35 loc) · 854 Bytes
/
FlyMessage.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
#ifndef FLY_MESSAGE_H
#define FLY_MESSAGE_H
#include <QWidget>
#include "title_bar.h"
#include "fm_sidebar.h"
#include "main_window.h"
class FlyMessage : public QWidget
{
Q_OBJECT
public:
explicit FlyMessage(QWidget *parent = nullptr);
~FlyMessage();
bool hasBackgroundImage;
TitleBar* titlebar;
FM_SideBar* sidebar;
MainWindow* mainwindow;//TODO:
QWidget* centerWidget;
QImage background; // 背景图片
// 窗体移动事件的点
QPoint windowPos;
QPoint mousePos;
QPoint dPos;
public slots:
void onMin(bool);
void onMax(bool);
void onClose(bool);
private:
protected:
void initLayout();
void initSignalAndSlot();
void setThisLayout();
void setThisStyle();
void setBackgroundImage(QString filename); // 设置背景图片
};
#endif // FLY_MESSAGE_H