Marble

GeoScenePalette.cpp
1 /*
2  SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "GeoScenePalette.h"
8 
9 #include "GeoSceneTypes.h"
10 
11 namespace Marble
12 {
13 
14 GeoScenePalette::GeoScenePalette( const QString& type,
15  const QString& file )
16  : m_type( type ),
17  m_file( file )
18 {
19 }
20 
21 QString GeoScenePalette::type() const
22 {
23  return m_type;
24 }
25 
26 void GeoScenePalette::setType( const QString& type )
27 {
28  m_type = type;
29 }
30 
31 QString GeoScenePalette::file() const
32 {
33  return m_file;
34 }
35 
36 void GeoScenePalette::setFile( const QString& file )
37 {
38  m_file = file;
39 }
40 
41 bool GeoScenePalette::operator==( const GeoScenePalette& rhs ) const
42 {
43  return m_file == rhs.m_file && m_type == rhs.m_type;
44 }
45 
46 const char *GeoScenePalette::nodeType() const
47 {
48  return GeoSceneTypes::GeoScenePaletteType;
49 }
50 
51 }
Type type(const QSqlDatabase &db)
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Binds a QML item to a specific geodetic location in screen coordinates.
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.