Marble::LabelGraphicsItem

Search for usage in LXR

Marble::LabelGraphicsItem Class Reference

#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()

LabelGraphicsItem::LabelGraphicsItem ( MarbleGraphicsItem * parent = nullptr)
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()

void LabelGraphicsItem::paintContent ( QPainter * painter)
overrideprotected

Definition at line 127 of file LabelGraphicsItem.cpp.

◆ setContentSize()

void LabelGraphicsItem::setContentSize ( const QSizeF & contentSize)
override

Definition at line 28 of file LabelGraphicsItem.cpp.

◆ setIcon()

void LabelGraphicsItem::setIcon ( const QIcon & icon,
const QSize & size )

Definition at line 96 of file LabelGraphicsItem.cpp.

◆ setImage()

void LabelGraphicsItem::setImage ( const QImage & image,
const QSize & size = QSize() )

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.