• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataSnippet.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2013 Levente Kurusa <levex@linux.com>
9 //
10 
11 #include "GeoDataSnippet.h"
12 
13 namespace Marble
14 {
15 
16 GeoDataSnippet::GeoDataSnippet(const QString &text , int maxLines ) :
17  m_text( text ),
18  m_maxLines( maxLines )
19 {
20  // nothing to do
21 }
22 
23 bool GeoDataSnippet::operator==( const GeoDataSnippet &other ) const
24 {
25  return m_text == other.m_text && m_maxLines == other.m_maxLines;
26 }
27 
28 bool GeoDataSnippet::operator!=( const GeoDataSnippet &other ) const
29 {
30  return !this->operator==( other );
31 }
32 
33 int GeoDataSnippet::maxLines() const
34 {
35  return m_maxLines;
36 }
37 
38 void GeoDataSnippet::setMaxLines( int lines )
39 {
40  m_maxLines = lines;
41 }
42 
43 QString GeoDataSnippet::text() const
44 {
45  return m_text;
46 }
47 
48 void GeoDataSnippet::setText( const QString &text )
49 {
50  m_text = text;
51 }
52 
53 }
54 
Marble::GeoDataSnippet::maxLines
int maxLines() const
Return the number of lines that should be displayed at maximum.
Definition: GeoDataSnippet.cpp:33
Marble::GeoDataSnippet::setText
void setText(const QString &text)
Set the text that the snippet will display.
Definition: GeoDataSnippet.cpp:48
Marble::GeoDataSnippet::operator==
bool operator==(const GeoDataSnippet &other) const
Check for equality/inequality between two GeoDataSnippets.
Definition: GeoDataSnippet.cpp:23
Marble::GeoDataSnippet::text
QString text() const
Returns the text that is associated with this snippet.
Definition: GeoDataSnippet.cpp:43
QString
Marble::GeoDataSnippet::GeoDataSnippet
GeoDataSnippet(const QString &text=QString(), int maxLines=0)
Create a new snippet with the given text and maximum of lines.
Definition: GeoDataSnippet.cpp:16
Marble::GeoDataSnippet::operator!=
bool operator!=(const GeoDataSnippet &other) const
Definition: GeoDataSnippet.cpp:28
GeoDataSnippet.h
Marble::GeoDataSnippet
Definition: GeoDataSnippet.h:20
Marble::GeoDataSnippet::setMaxLines
void setMaxLines(int lines)
Set the number of lines displayed at maximum.
Definition: GeoDataSnippet.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal