7#include <QScopedPointer>
11#include <dtkwidget_global.h>
14#if DTK_VERSION < DTK_VERSION_CHECK(6, 0, 0, 0)
16DWIDGET_BEGIN_NAMESPACE
19class LIBDTKWIDGETSHARED_EXPORT D_DECL_DEPRECATED_X(
"Use DMessageManager") DToast :
public QFrame,
public DTK_CORE_NAMESPACE::DObject
23 Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
24 Q_PROPERTY(qreal duration READ duration WRITE setDuration)
26 explicit DToast(QWidget *parent = 0);
34 void visibleChanged(
bool isVisible);
39 void showEvent(QShowEvent *event)
override;
40 void hideEvent(QHideEvent *event)
override;
42 void setText(QString text);
43 void setIcon(QString icon);
44 void setIcon(QIcon icon, QSize defaultSize = QSize(20, 20));
45 void setDuration(
int duration);
48 qreal opacity()
const;
49 void setOpacity(qreal);
51 D_DECLARE_PRIVATE(DToast)