2017-09-29 13:58:00 +00:00
|
|
|
#ifndef QTMATERIALSNACKBAR_P_H
|
|
|
|
#define QTMATERIALSNACKBAR_P_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QColor>
|
2022-02-17 02:57:43 +00:00
|
|
|
namespace md
|
|
|
|
{
|
2017-09-29 13:58:00 +00:00
|
|
|
|
2022-02-17 02:57:43 +00:00
|
|
|
class SnackBar;
|
|
|
|
class SnackBarStateMachine;
|
2017-09-29 13:58:00 +00:00
|
|
|
|
2022-02-17 02:57:43 +00:00
|
|
|
class SnackBarPrivate
|
2017-09-29 13:58:00 +00:00
|
|
|
{
|
2022-02-17 02:57:43 +00:00
|
|
|
Q_DISABLE_COPY(SnackBarPrivate)
|
|
|
|
Q_DECLARE_PUBLIC(Snackbar)
|
2017-09-29 13:58:00 +00:00
|
|
|
|
|
|
|
public:
|
2022-02-17 02:57:43 +00:00
|
|
|
SnackBarPrivate(SnackBar *q);
|
|
|
|
~SnackBarPrivate();
|
2017-09-29 13:58:00 +00:00
|
|
|
|
|
|
|
void init();
|
|
|
|
|
2022-02-17 02:57:43 +00:00
|
|
|
SnackBar *const q_ptr;
|
|
|
|
SnackBarStateMachine *stateMachine;
|
2017-09-29 13:58:00 +00:00
|
|
|
QColor backgroundColor;
|
|
|
|
QColor textColor;
|
|
|
|
qreal bgOpacity;
|
|
|
|
QList<QString> messages;
|
|
|
|
int duration;
|
|
|
|
int boxWidth;
|
|
|
|
bool clickDismiss;
|
|
|
|
bool useThemeColors;
|
|
|
|
};
|
2022-02-17 02:57:43 +00:00
|
|
|
}
|
2017-09-29 13:58:00 +00:00
|
|
|
#endif // QTMATERIALSNACKBAR_P_H
|