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