Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
notify.h 785 Bytes
Copy Edit Web IDE Raw Blame History
潘昕 authored 2016-10-14 11:34 . INIT
#ifndef NOTIFY_H
#define NOTIFY_H
#include <QWidget>
#include <QLabel>
#include <QMouseEvent>
#include <QPushButton>
class Notify : public QWidget
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();
void disappeared();
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

Comment ( 0 )

Sign in for post a comment