Marble

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

KDE's Doxygen guidelines are available online.