Marble

GeoScenePalette.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "GeoScenePalette.h"
8
9#include "GeoSceneTypes.h"
10
11namespace Marble
12{
13
14GeoScenePalette::GeoScenePalette(const QString &type, const QString &file)
15 : m_type(type)
16 , m_file(file)
17{
18}
19
20QString GeoScenePalette::type() const
21{
22 return m_type;
23}
24
25void GeoScenePalette::setType(const QString &type)
26{
27 m_type = type;
28}
29
30QString GeoScenePalette::file() const
31{
32 return m_file;
33}
34
35void GeoScenePalette::setFile(const QString &file)
36{
37 m_file = file;
38}
39
40bool GeoScenePalette::operator==(const GeoScenePalette &rhs) const
41{
42 return m_file == rhs.m_file && m_type == rhs.m_type;
43}
44
45const char *GeoScenePalette::nodeType() const
46{
47 return GeoSceneTypes::GeoScenePaletteType;
48}
49
50}
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:52:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.