6#include "GeoDataBalloonStyle.h"
7#include "GeoDataTypes.h"
14class GeoDataBalloonStylePrivate
17 GeoDataBalloonStylePrivate();
22 GeoDataBalloonStyle::DisplayMode m_mode;
25GeoDataBalloonStylePrivate::GeoDataBalloonStylePrivate() :
28 m_mode( GeoDataBalloonStyle::Default )
32GeoDataBalloonStyle::GeoDataBalloonStyle() :
33 d( new GeoDataBalloonStylePrivate )
37GeoDataBalloonStyle::GeoDataBalloonStyle(
const Marble::GeoDataBalloonStyle &other ) :
38 GeoDataColorStyle( other ), d( new GeoDataBalloonStylePrivate( *other.d ) )
42GeoDataBalloonStyle &GeoDataBalloonStyle::operator=(
const GeoDataBalloonStyle &other )
44 GeoDataColorStyle::operator=(other);
49bool GeoDataBalloonStyle::operator==(
const GeoDataBalloonStyle &other )
const
52 d->m_bgColor == other.d->m_bgColor &&
53 d->m_mode == other.d->m_mode &&
54 d->m_text == other.d->m_text &&
55 d->m_textColor == other.d->m_textColor;
58bool GeoDataBalloonStyle::operator!=(
const GeoDataBalloonStyle &other )
const
63GeoDataBalloonStyle::~GeoDataBalloonStyle()
68const char *GeoDataBalloonStyle::nodeType()
const
70 return GeoDataTypes::GeoDataBalloonStyleType;
73QColor GeoDataBalloonStyle::backgroundColor()
const
78void GeoDataBalloonStyle::setBackgroundColor(
const QColor &color )
83QColor GeoDataBalloonStyle::textColor()
const
85 return d->m_textColor;
88void GeoDataBalloonStyle::setTextColor(
const QColor &color )
90 d->m_textColor = color;
93QString GeoDataBalloonStyle::text()
const
98void GeoDataBalloonStyle::setText(
const QString &text )
103GeoDataBalloonStyle::DisplayMode GeoDataBalloonStyle::displayMode()
const
108void GeoDataBalloonStyle::setDisplayMode(DisplayMode mode)
113void GeoDataBalloonStyle::pack(
QDataStream& stream )
const
115 GeoDataColorStyle::pack( stream );
117 stream << d->m_bgColor.name();
118 stream << d->m_textColor.name();
122void GeoDataBalloonStyle::unpack(
QDataStream& stream )
124 GeoDataColorStyle::unpack( stream );
126 stream >> d->m_bgColor;
127 stream >> d->m_textColor;
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)