Plasma
label.cpp
Go to the documentation of this file.
177 nativeWidget()->setTextInteractionFlags(Qt::LinksAccessibleByMouse | Qt::LinksAccessibleByKeyboard);
void setTextSelectable(bool enable)
Set if the text on the label can be selected with the mouse.
Definition: label.cpp:172
void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: label.cpp:237
void setScaledContents(bool scaled)
Scale or not the contents of the label to the label size.
Definition: label.cpp:162
void setStyleSheet(const QString &stylesheet)
Sets the stylesheet used to control the visual display of this Label.
Definition: label.cpp:208
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const
Definition: label.cpp:339
void linkActivated(const QString &link)
void linkHovered(const QString &link)
QVariant itemChange(GraphicsItemChange change, const QVariant &value)
Definition: label.cpp:330
void dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
Definition: label.cpp:223
void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: label.cpp:264
void setWordWrap(bool wrap)
Sets if the text of the label can wrap in multiple lines.
Definition: label.cpp:198
Q_INVOKABLE QString imagePath(const QString &name) const
Retrieve the path for an SVG image in the current theme.
Definition: theme.cpp:794
Label(QGraphicsWidget *parent=0)
Constructs a label with word wrap on by default.
Definition: label.cpp:94
void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: label.cpp:254
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: label.cpp:271
void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition: label.cpp:248
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jan 30 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.