marble
LabelGraphicsItem.cpp
Go to the documentation of this file.
Definition: FrameGraphicsItem.h:25
void setIcon(const QIcon &icon, const QSize &size)
Definition: LabelGraphicsItem.cpp:102
bool isEmpty() const
QSizeF minimumSize() const
Definition: LabelGraphicsItem.cpp:109
QSizeF contentSize() const
Returns the size of the content of the MarbleGraphicsItem.
Definition: FrameGraphicsItem.cpp:180
void save()
void setImage(const QImage &image, const QSize &size=QSize())
Definition: LabelGraphicsItem.cpp:85
QSizeF m_minimumSize
Definition: LabelGraphicsItem_p.h:38
bool isNull() const
~LabelGraphicsItem()
Definition: LabelGraphicsItem.cpp:61
bool isNull() const
void setMinimumSize(const QSizeF &size)
Definition: LabelGraphicsItem.cpp:114
void clear()
void setFont(const QFont &font)
QFont font()
bool isEmpty() const
void setText(const QString &text)
Definition: LabelGraphicsItem.cpp:71
void setPen(const QColor &color)
void setWidth(qreal width)
void drawText(const QPointF &position, const QString &text)
void paint(QPainter *painter, const QRect &rect, QFlags< Qt::AlignmentFlag > alignment, Mode mode, State state) const
void restore()
void paintContent(QPainter *painter)
Here the items paint their content.
Definition: LabelGraphicsItem.cpp:129
void drawImage(const QRectF &target, const QImage &image, const QRectF &source, QFlags< Qt::ImageConversionFlag > flags)
bool isNull() const
A label item provides an Item that displays text or images/pixmaps.
Definition: LabelGraphicsItem.h:31
QSize size() const
LabelGraphicsItem(MarbleGraphicsItem *parent=0)
Definition: LabelGraphicsItem.cpp:55
qreal height() const
void setContentSize(const QSizeF &size)
Sets the size of the content of the item.
Definition: FrameGraphicsItem.cpp:200
void setHeight(qreal height)
qreal width() const
void setContentSize(const QSizeF &contentSize)
Sets the size of the content of the item.
Definition: LabelGraphicsItem.cpp:34
LabelGraphicsItemPrivate(LabelGraphicsItem *parent)
Definition: LabelGraphicsItem.cpp:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.