Marble::LabelGraphicsItem

Search for usage in LXR

Marble::LabelGraphicsItem Class Reference

#include <LabelGraphicsItem.h>

Inherits Marble::FrameGraphicsItem.

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 51 of file LabelGraphicsItem.cpp.

◆ ~LabelGraphicsItem()

LabelGraphicsItem::~LabelGraphicsItem ( )
override

Definition at line 56 of file LabelGraphicsItem.cpp.

Member Function Documentation

◆ clear()

void LabelGraphicsItem::clear ( )

Definition at line 123 of file LabelGraphicsItem.cpp.

◆ icon()

QIcon LabelGraphicsItem::icon ( ) const

Definition at line 95 of file LabelGraphicsItem.cpp.

◆ image()

QImage LabelGraphicsItem::image ( ) const

Definition at line 76 of file LabelGraphicsItem.cpp.

◆ minimumSize()

QSizeF LabelGraphicsItem::minimumSize ( ) const

Definition at line 109 of file LabelGraphicsItem.cpp.

◆ paintContent()

void LabelGraphicsItem::paintContent ( QPainter * painter)
overrideprotected

Definition at line 132 of file LabelGraphicsItem.cpp.

◆ setContentSize()

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

Definition at line 29 of file LabelGraphicsItem.cpp.

◆ setIcon()

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

Definition at line 101 of file LabelGraphicsItem.cpp.

◆ setImage()

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

Definition at line 82 of file LabelGraphicsItem.cpp.

◆ setMinimumSize()

void LabelGraphicsItem::setMinimumSize ( const QSizeF & size)

Definition at line 115 of file LabelGraphicsItem.cpp.

◆ setText()

void LabelGraphicsItem::setText ( const QString & text)

Definition at line 66 of file LabelGraphicsItem.cpp.

◆ text()

QString LabelGraphicsItem::text ( ) const

Definition at line 60 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 Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.