KWidgetsAddons
kmessagewidget.h
A widget to provide feedback or propose opportunistic interactions.
Definition kmessagewidget.h:88
bool isShowAnimationRunning() const
Check whether the show animation started by calling animatedShow() is still running.
Definition kmessagewidget.cpp:521
void setCloseButtonVisible(bool visible)
Set the visibility of the close button.
Definition kmessagewidget.cpp:430
bool isHideAnimationRunning() const
Check whether the hide animation started by calling animatedHide() is still running.
Definition kmessagewidget.cpp:516
void linkActivated(const QString &contents)
This signal is emitted when the user clicks a link in the text label.
void showAnimationFinished()
This signal is emitted when the show animation is finished, started by calling animatedShow().
void linkHovered(const QString &contents)
This signal is emitted when the user hovers over a link in the text label.
void hideAnimationFinished()
This signal is emitted when the hide animation is finished, started by calling animatedHide().
void setMessageType(KMessageWidget::MessageType type)
Set the message type to type.
Definition kmessagewidget.cpp:280
void setTextFormat(Qt::TextFormat textFormat)
Set the text format of the message widget's label.
Definition kmessagewidget.cpp:270
void setIcon(const QIcon &icon)
Define an icon to be shown on the left of the text.
Definition kmessagewidget.cpp:531
KMessageWidget(QWidget *parent=nullptr)
Constructs a KMessageWidget with the specified parent.
Definition kmessagewidget.cpp:237
bool isCloseButtonVisible() const
Check whether the close button is visible.
Definition kmessagewidget.cpp:425
void setPosition(Position position)
Set the position of this message.
Definition kmessagewidget.cpp:419
void setText(const QString &text)
Set the text of the message widget to text.
Definition kmessagewidget.cpp:259
QFrame(QWidget *parent, Qt::WindowFlags f)
virtual bool event(QEvent *e) override
virtual void paintEvent(QPaintEvent *) override
virtual QSize sizeHint() const const override
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
TextFormat
QAction * addAction(const QIcon &icon, const QString &text)
virtual int heightForWidth(int w) const const
minimumSizeHint
void removeAction(QAction *action)
virtual void resizeEvent(QResizeEvent *event)
visible
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:52:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:52:27 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.