11class QGraphicsOpacityEffect;
12class QPropertyAnimation;
41 void startFade(qreal to,
bool dismissWhenFaded);
46 int plateWidth(
int outerWidth)
const;
48 static int textWidthFor(
int plateWidth);
50 int outerHeightFor(
int outerWidth)
const;
54 int m_timeout = QxToast::DefaultTimeout;
55 int m_fadeDuration = QxToast::DefaultFadeDuration;
58 bool m_dismissing =
false;
59 bool m_paused =
false;
60 bool m_dismissWhenFaded =
false;
The state behind QxToast: the message, the level, the clock and the two animations.
One short message, shown over the window it belongs to and gone a few seconds later.
Level
What the message is about; it selects the icon and the accent colour.
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PUBLIC(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_APP_BEGIN_NAMESPACE