CCIMXDesktop
 
Loading...
Searching...
No Matches
InformToastLabel.h
Go to the documentation of this file.
1
6#ifndef INFORMTOASTLABEL_H
7#define INFORMTOASTLABEL_H
8
9#include <QWidget> // Base class for InformToastLabel
10
11// Forward declaration of the UI namespace generated by Qt Designer
12namespace Ui {
14}
15
25class InformToastLabel : public QWidget {
26Q_OBJECT // Enables Qt's meta-object system features like signals and slots
27
28 public :
33 explicit InformToastLabel(QWidget* parent = nullptr);
34
41
46 void setTitle(const QString& title);
47
52 void setText(const QString& text);
53
61 void setIcon(const QString& icons);
62
63protected:
71 void paintEvent(QPaintEvent* event) override;
72
73private:
79 Ui::InformToastLabel* ui;
80};
81
82#endif // INFORMTOASTLABEL_H
A custom QWidget designed to display an informative toast notification.
Definition InformToastLabel.h:25
~InformToastLabel()
Destroys the InformToastLabel object.
Definition InformToastLabel.cpp:39
void paintEvent(QPaintEvent *event) override
Overrides the default paint event for the widget.
Definition InformToastLabel.cpp:43
void setText(const QString &text)
Sets the main text message for the toast notification.
Definition InformToastLabel.cpp:62
void setIcon(const QString &icons)
Sets the icon for the toast notification.
Definition InformToastLabel.cpp:66
void setTitle(const QString &title)
Sets the title text for the toast notification.
Definition InformToastLabel.cpp:58