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)
39 , d(new GeoDataBalloonStylePrivate(*other.d))
43GeoDataBalloonStyle &GeoDataBalloonStyle::operator=(
const GeoDataBalloonStyle &other)
45 GeoDataColorStyle::operator=(other);
50bool GeoDataBalloonStyle::operator==(
const GeoDataBalloonStyle &other)
const
52 return equals(other) && d->m_bgColor == other.d->m_bgColor && d->m_mode == other.d->m_mode && d->m_text == other.d->m_text
53 && d->m_textColor == other.d->m_textColor;
56bool GeoDataBalloonStyle::operator!=(
const GeoDataBalloonStyle &other)
const
61GeoDataBalloonStyle::~GeoDataBalloonStyle()
66const char *GeoDataBalloonStyle::nodeType()
const
68 return GeoDataTypes::GeoDataBalloonStyleType;
71QColor GeoDataBalloonStyle::backgroundColor()
const
76void GeoDataBalloonStyle::setBackgroundColor(
const QColor &color)
81QColor GeoDataBalloonStyle::textColor()
const
83 return d->m_textColor;
86void GeoDataBalloonStyle::setTextColor(
const QColor &color)
88 d->m_textColor = color;
91QString GeoDataBalloonStyle::text()
const
96void GeoDataBalloonStyle::setText(
const QString &text)
101GeoDataBalloonStyle::DisplayMode GeoDataBalloonStyle::displayMode()
const
106void GeoDataBalloonStyle::setDisplayMode(DisplayMode mode)
111void GeoDataBalloonStyle::pack(
QDataStream &stream)
const
113 GeoDataColorStyle::pack(stream);
115 stream << d->m_bgColor.name();
116 stream << d->m_textColor.name();
120void GeoDataBalloonStyle::unpack(
QDataStream &stream)
122 GeoDataColorStyle::unpack(stream);
124 stream >> d->m_bgColor;
125 stream >> d->m_textColor;
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
bool equals(const QVariant &lhs, const QVariant &rhs)
Binds a QML item to a specific geodetic location in screen coordinates.