-
Notifications
You must be signed in to change notification settings - Fork 55
/
title_widget.h
43 lines (34 loc) · 976 Bytes
/
title_widget.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
#ifndef TITLE_WIDGET_H
#define TITLE_WIDGET_H
#include <QWidget>
#include <QLabel>
#include "push_button.h"
class TitleWidget : public QWidget
{
Q_OBJECT
public:
explicit TitleWidget(QWidget *parent = 0);
private:
QLabel *version_title; //标题
QPushButton *medal_button; //勋章墙
PushButton *skin_button; //换肤
PushButton *main_menu_button; //主菜单
PushButton *min_button; //最小化
PushButton *max_button; //最大化
PushButton *close_button; //关闭
QPoint press_point;//鼠标按下去的点
bool is_move;
signals:
void showSkin();
void showMin();
void showMax();
void showMainMenu();
void closeWidget();
public slots:
protected:
void mousePressEvent(QMouseEvent *);
void mouseMoveEvent(QMouseEvent *);
void mouseReleaseEvent(QMouseEvent *);
void mouseDoubleClickEvent(QMouseEvent *);
};
#endif // TITLE_WIDGET_H