Marble::LabelGraphicsItem
#include <LabelGraphicsItem.h>
Public Member Functions | |
LabelGraphicsItem (MarbleGraphicsItem *parent=nullptr) | |
void | clear () |
QIcon | icon () const |
QImage | image () const |
QSizeF | minimumSize () const |
void | setContentSize (const QSizeF &contentSize) override |
void | setIcon (const QIcon &icon, const QSize &size) |
void | setImage (const QImage &image, const QSize &size=QSize()) |
void | setMinimumSize (const QSizeF &size) |
void | setText (const QString &text) |
QString | text () const |
Protected Member Functions | |
void | paintContent (QPainter *painter) override |
Detailed Description
A label item provides an Item that displays text or images/pixmaps.
The text is displayed as plain text. The item also provides frames.
Definition at line 28 of file LabelGraphicsItem.h.
Constructor & Destructor Documentation
◆ LabelGraphicsItem()
|
explicit |
Definition at line 49 of file LabelGraphicsItem.cpp.
Member Function Documentation
◆ clear()
void LabelGraphicsItem::clear | ( | ) |
Definition at line 118 of file LabelGraphicsItem.cpp.
◆ icon()
QIcon LabelGraphicsItem::icon | ( | ) | const |
Definition at line 90 of file LabelGraphicsItem.cpp.
◆ image()
QImage LabelGraphicsItem::image | ( | ) | const |
Definition at line 72 of file LabelGraphicsItem.cpp.
◆ minimumSize()
QSizeF LabelGraphicsItem::minimumSize | ( | ) | const |
Definition at line 104 of file LabelGraphicsItem.cpp.
◆ paintContent()
|
overrideprotected |
Definition at line 127 of file LabelGraphicsItem.cpp.
◆ setContentSize()
|
override |
Definition at line 28 of file LabelGraphicsItem.cpp.
◆ setIcon()
Definition at line 96 of file LabelGraphicsItem.cpp.
◆ setImage()
Definition at line 78 of file LabelGraphicsItem.cpp.
◆ setMinimumSize()
void LabelGraphicsItem::setMinimumSize | ( | const QSizeF & | size | ) |
Definition at line 110 of file LabelGraphicsItem.cpp.
◆ setText()
void LabelGraphicsItem::setText | ( | const QString & | text | ) |
Definition at line 62 of file LabelGraphicsItem.cpp.
◆ text()
QString LabelGraphicsItem::text | ( | ) | const |
Definition at line 56 of file LabelGraphicsItem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.