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,
15 const QString& file )
16 : m_type( type ),
17 m_file( file )
18{
19}
20
21QString GeoScenePalette::type() const
22{
23 return m_type;
24}
25
26void GeoScenePalette::setType( const QString& type )
27{
28 m_type = type;
29}
30
31QString GeoScenePalette::file() const
32{
33 return m_file;
34}
35
36void GeoScenePalette::setFile( const QString& file )
37{
38 m_file = file;
39}
40
41bool GeoScenePalette::operator==( const GeoScenePalette& rhs ) const
42{
43 return m_file == rhs.m_file && m_type == rhs.m_type;
44}
45
46const char *GeoScenePalette::nodeType() const
47{
48 return GeoSceneTypes::GeoScenePaletteType;
49}
50
51}
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 Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.