Marble

GeoDataSnippet.cpp
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2013 Levente Kurusa <[email protected]>
4 //
5 
6 #include "GeoDataSnippet.h"
7 
8 namespace Marble
9 {
10 
11 GeoDataSnippet::GeoDataSnippet(const QString &text , int maxLines ) :
12  m_text( text ),
13  m_maxLines( maxLines )
14 {
15  // nothing to do
16 }
17 
18 bool GeoDataSnippet::operator==( const GeoDataSnippet &other ) const
19 {
20  return m_text == other.m_text && m_maxLines == other.m_maxLines;
21 }
22 
23 bool GeoDataSnippet::operator!=( const GeoDataSnippet &other ) const
24 {
25  return !this->operator==( other );
26 }
27 
28 int GeoDataSnippet::maxLines() const
29 {
30  return m_maxLines;
31 }
32 
33 void GeoDataSnippet::setMaxLines( int lines )
34 {
35  m_maxLines = lines;
36 }
37 
38 QString GeoDataSnippet::text() const
39 {
40  return m_text;
41 }
42 
43 void GeoDataSnippet::setText( const QString &text )
44 {
45  m_text = text;
46 }
47 
48 }
49 
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
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 Mon Oct 2 2023 03:52:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.