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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • postalcode
PostalCodeItem.h
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 2011 Valery Kharitonov <kharvd@gmail.com>
9 //
10 
11 #ifndef POSTALCODEITEM_H
12 #define POSTALCODEITEM_H
13 
14 #include "AbstractDataPluginItem.h"
15 
16 #include <QFont>
17 
18 namespace Marble
19 {
20 
21 class PostalCodeItem : public AbstractDataPluginItem
22 {
23  Q_OBJECT
24 
25  public:
26  explicit PostalCodeItem( QObject *parent );
27 
28  ~PostalCodeItem();
29 
30  QString itemType() const;
31 
32  bool initialized() const;
33 
34  void paint( QPainter *painter );
35 
36  bool operator<( const AbstractDataPluginItem *other ) const;
37 
38  QString text() const;
39 
40  void setText( const QString& text );
41 
42  private:
43  QString m_text;
44 
45  static const QFont s_font;
46  static const int s_labelOutlineWidth;
47 };
48 
49 }
50 #endif // POSTALCODEITEM_H
QPainter
Marble::PostalCodeItem::PostalCodeItem
PostalCodeItem(QObject *parent)
Definition: PostalCodeItem.cpp:26
Marble::PostalCodeItem::itemType
QString itemType() const
Returns the type of this specific item.
Definition: PostalCodeItem.cpp:37
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
Marble::PostalCodeItem::text
QString text() const
Definition: PostalCodeItem.cpp:52
QObject
Marble::PostalCodeItem
Definition: PostalCodeItem.h:21
Marble::PostalCodeItem::paint
void paint(QPainter *painter)
Paints the item in item coordinates.
Definition: PostalCodeItem.cpp:64
Marble::PostalCodeItem::initialized
bool initialized() const
Definition: PostalCodeItem.cpp:42
Marble::PostalCodeItem::~PostalCodeItem
~PostalCodeItem()
Definition: PostalCodeItem.cpp:33
Marble::PostalCodeItem::operator<
bool operator<(const AbstractDataPluginItem *other) const
Definition: PostalCodeItem.cpp:47
Marble::PostalCodeItem::setText
void setText(const QString &text)
Definition: PostalCodeItem.cpp:57
AbstractDataPluginItem.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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