A notification widget that can display long content.
More...
#include <long_notification.h>
|
| | LongNotificationWidget (const QString &id, const QString &title, logging::LogLevel level, QWidget *parent=nullptr) |
| | Constructs a new LongNotificationWidget.
|
| void | updateContent (QWidget *content) |
| | Updates the content of the notification widget.
|
| QString | id () const |
| | Retrieves the unique identifier for the widget.
|
| bool | disappearing () const override |
| | Checks if the notification is set to disappear automatically.
|
| | NotificationWidget (const QString &title, const QString &text, logging::LogLevel level, QWidget *parent=nullptr) |
| | Constructs a notification widget.
|
| qreal | opacity () const |
| | Returns the current opacity of the widget.
|
| void | setOpacity (qreal o) |
| | Sets the opacity of the widget.
|
| | StyledFrame (QWidget *parent=nullptr) |
| | Constructs a StyledFrame with the given parent.
|
| void | setBackgroundRole (BackgroundRole role) |
| | Sets the background role of the frame.
|
| void | setBorderRole (BorderRole role) |
| | Sets the border role of the frame.
|
| void | setCustomBackgroundColor (const QColor &color) |
| | Sets a custom background color for the frame.
|
| void | setCustomBorderColor (const QColor &color) |
| | Sets a custom border color for the frame.
|
| void | setBorderWidth (int width) |
| | Sets the width of the border.
|
| void | setRadius (qreal radius) |
| | Sets the radius for rounded corners.
|
|
|
const QString | mId |
| | Unique identifier for the widget.
|
|
|
void | showAnimated () |
| | Shows the notification with a fade-in animation.
|
|
void | hideAnimated () |
| | Hides the notification with a fade-out animation.
|
| void | dismissed (NotificationWidget *self) |
| | Emitted when the notification is dismissed.
|
| void | paintEvent (QPaintEvent *event) override |
| | Handles the paint event to draw the styled frame.
|
|
QTimer | mAutoCloseTimer |
| | Timer used to automatically dismiss the notification.
|
|
QPropertyAnimation * | mFadeAnim |
| | Animation used to control opacity transitions.
|
| qreal | opacity |
| | Controls the visual opacity of the widget.
|
A notification widget that can display long content.
◆ LongNotificationWidget()
| maki::LongNotificationWidget::LongNotificationWidget |
( |
const QString & | id, |
|
|
const QString & | title, |
|
|
logging::LogLevel | level, |
|
|
QWidget * | parent = nullptr ) |
Constructs a new LongNotificationWidget.
- Parameters
-
| id | The unique identifier for the widget. |
| title | The title of the notification. |
| level | The logging level associated with the notification. |
| parent | The parent widget, if any. |
◆ disappearing()
| bool maki::LongNotificationWidget::disappearing |
( |
| ) |
const |
|
overridevirtual |
Checks if the notification is set to disappear automatically.
- Returns
- True if the notification will disappear, false otherwise.
Reimplemented from NotificationWidget.
◆ id()
| QString maki::LongNotificationWidget::id |
( |
| ) |
const |
Retrieves the unique identifier for the widget.
- Returns
- The ID as a QString.
◆ updateContent()
| void maki::LongNotificationWidget::updateContent |
( |
QWidget * | content | ) |
|
Updates the content of the notification widget.
- Parameters
-
| content | The new content to display. |
The documentation for this class was generated from the following files:
- /__w/maki/maki/app/widgets/long_notification.h
- /__w/maki/maki/app/widgets/long_notification.cpp