1 Star 0 Fork 126

drip / qt-notify

forked from 终端组 / qt-notify 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
notify.h 785 Bytes
一键复制 编辑 原始数据 按行查看 历史
潘昕 提交于 2016-10-14 11:34 . INIT
#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
C++
1
https://gitee.com/drip-hailin/qt-notify.git
git@gitee.com:drip-hailin/qt-notify.git
drip-hailin
qt-notify
qt-notify
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891