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
12
namespace
Ui {
13
class
InformToastLabel
;
14
}
15
25
class
InformToastLabel
:
public
QWidget {
26
Q_OBJECT
// Enables Qt's meta-object system features like signals and slots
27
28
public :
33
explicit
InformToastLabel
(QWidget* parent =
nullptr
);
34
40
~InformToastLabel
();
41
46
void
setTitle
(
const
QString& title);
47
52
void
setText
(
const
QString& text);
53
61
void
setIcon
(
const
QString& icons);
62
63
protected
:
71
void
paintEvent
(QPaintEvent* event)
override
;
72
73
private
:
79
Ui::InformToastLabel* ui;
80
};
81
82
#endif
// INFORMTOASTLABEL_H
InformToastLabel
A custom QWidget designed to display an informative toast notification.
Definition
InformToastLabel.h:25
InformToastLabel::~InformToastLabel
~InformToastLabel()
Destroys the InformToastLabel object.
Definition
InformToastLabel.cpp:39
InformToastLabel::paintEvent
void paintEvent(QPaintEvent *event) override
Overrides the default paint event for the widget.
Definition
InformToastLabel.cpp:43
InformToastLabel::setText
void setText(const QString &text)
Sets the main text message for the toast notification.
Definition
InformToastLabel.cpp:62
InformToastLabel::setIcon
void setIcon(const QString &icons)
Sets the icon for the toast notification.
Definition
InformToastLabel.cpp:66
InformToastLabel::setTitle
void setTitle(const QString &title)
Sets the title text for the toast notification.
Definition
InformToastLabel.cpp:58
ui
inform_toast_label
InformToastLabel.h
Generated by
1.9.8