KDEGames
kgamepopupitem.h
QGraphicsItem capable of showing short popup messages which do not interrupt the gameplay.
Definition kgamepopupitem.h:38
KGamePopupItem(QGraphicsItem *parent=nullptr)
Constructs a message item.
Definition kgamepopupitem.cpp:175
void setMessageOpacity(qreal opacity)
Sets the message opacity from 0 (fully transparent) to 1 (fully opaque) For example 0....
Definition kgamepopupitem.cpp:392
void showMessage(const QString &text, Position pos, ReplaceMode mode=LeavePrevious)
Shows the message: item will appear at specified place of the scene using simple animation Item will ...
Definition kgamepopupitem.cpp:240
void setMessageIcon(const QPixmap &pix)
Sets custom pixmap to show instead of default icon on the left.
Definition kgamepopupitem.cpp:440
HideType
Used to specify how to hide in forceHide() - instantly or animatedly.
Definition kgamepopupitem.h:136
void linkHovered(const QString &link)
Emitted when user hovers a link in item.
ReplaceMode
Possible values for message showing mode in respect to a previous message.
Definition kgamepopupitem.h:47
void setHideOnMouseClick(bool hide)
Sets whether to hide this popup item on mouse click.
Definition kgamepopupitem.cpp:378
Position
The possible places in the scene where a message can be shown.
Definition kgamepopupitem.h:63
void setMessageTimeout(int msec)
Sets the amount of time the item will stay visible on screen before it goes away.
Definition kgamepopupitem.cpp:371
void linkActivated(const QString &link)
Emitted when user clicks on a link in item.
QGraphicsItem(QGraphicsItem *parent)
virtual QRectF boundingRect() const const=0
void hide()
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event)
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
qreal opacity() const const
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)=0
QPointF pos() const const
QObject(QObject *parent)
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:50:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.