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 }
Binds a QML item to a specific geodetic location in screen coordinates.
GeoSceneAbstractTileProjection::Type type() const override
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jan 17 2022 23:11:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.