-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotify.h
49 lines (33 loc) · 785 Bytes
/
notify.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 NOTIFY_H
#define NOTIFY_H
#include <QWidget>
#include <QLabel>
#include <QMouseEvent>
#include <QPushButton>
class Notify : public QWidget
{
Q_OBJECT
public:
explicit Notify(int displayTime, QWidget *parent = 0);
void setIcon(const QString &value);
void setTitle(const QString &value);
void setBody(const QString &value);
void setUrl(const QString &value);
void showGriant();
Q_SIGNALS:
void disappeared();
private:
int displayTime;
QString icon;
QString title;
QString body;
QString url;
QLabel *backgroundLabel;
QLabel *iconLabel;
QLabel *titleLabel;
QLabel *bodyLabel;
QPushButton *closeBtn;
void hideGriant();
void mousePressEvent(QMouseEvent *event);
};
#endif // NOTIFY_H