Marble
6 #include "GeoDataItemIcon.h"
7 #include "GeoDataTypes.h"
15 class GeoDataItemIconPrivate
18 GeoDataItemIconPrivate();
20 GeoDataItemIcon::ItemIconStates m_state;
25 GeoDataItemIconPrivate::GeoDataItemIconPrivate() :
32 GeoDataItemIcon::GeoDataItemIcon() :
33 d( new GeoDataItemIconPrivate )
37 GeoDataItemIcon::GeoDataItemIcon(
const Marble::GeoDataItemIcon &other ) :
38 GeoDataObject(), d( new GeoDataItemIconPrivate( *other.d ) )
42 GeoDataItemIcon &GeoDataItemIcon::operator=(
const GeoDataItemIcon &other )
44 GeoDataObject::operator=( other );
49 bool GeoDataItemIcon::operator==(
const GeoDataItemIcon& other )
const
51 return equals(other) &&
52 d->m_state == other.d->m_state &&
53 d->m_iconPath == other.d->m_iconPath &&
54 d->m_icon == other.d->m_icon;
57 bool GeoDataItemIcon::operator!=(
const GeoDataItemIcon& other )
const
62 GeoDataItemIcon::~GeoDataItemIcon()
67 const char *GeoDataItemIcon::nodeType()
const
69 return GeoDataTypes::GeoDataItemIconType;
72 GeoDataItemIcon::ItemIconStates GeoDataItemIcon::state()
const
77 void GeoDataItemIcon::setState(ItemIconStates state)
82 void GeoDataItemIcon::setIcon(
const QImage &icon )
87 QString GeoDataItemIcon::iconPath()
const
92 void GeoDataItemIcon::setIconPath(
const QString &path )
97 QImage GeoDataItemIcon::icon()
const
99 if(!d->m_icon.isNull())
103 else if(!d->m_iconPath.isEmpty())
105 d->m_icon =
QImage(resolvePath(d->m_iconPath));
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.