5#ifndef DMESSAGEMANAGER_H
6#define DMESSAGEMANAGER_H
10#include <dtkwidget_global.h>
11#include <dtkgui_global.h>
17DWIDGET_BEGIN_NAMESPACE
18class DFloatingMessage;
19class DMessageManagerPrivate;
32 void sendMessage(QWidget *par,
const QIcon &icon,
const QString &message);
33 void sendMessage(QWidget *par,
const DGUI_NAMESPACE::DDciIcon &icon,
const QString &message);
37 bool eventFilter(QObject *watched, QEvent *event)
override;
static DMessageManager * instance()
DMessageManager::instance 构造一个单例对象
Definition dmessagemanager.cpp:68
bool eventFilter(QObject *watched, QEvent *event) override
DMessageManager::eventFilter 消息过滤
Definition dmessagemanager.cpp:88
bool setContentMargens(QWidget *par, const QMargins &margins)
DMessageManager::setContentMargens 设置中间间隔值
Definition dmessagemanager.cpp:83