• 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
  • lib
  • marble
MarbleLineEdit.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 // The code in this file is largely based on KDE's KLineEdit class
9 // as included in KDE 4.5. See there for its authors:
10 // http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/klineedit_8cpp.html
11 //
12 // Copyright 2010,2012 Dennis Nienhüser <earthwings@gentoo.org>
13 //
14 
15 #ifndef MARBLE_ROUTINGLINEEDIT_H
16 #define MARBLE_ROUTINGLINEEDIT_H
17 
18 #include "marble_export.h"
19 
20 #include <QLineEdit>
21 
22 namespace Marble
23 {
24 
25 class MarbleLineEditPrivate;
26 
32 class MARBLE_EXPORT MarbleLineEdit : public QLineEdit
33 {
34  Q_OBJECT
35 
36 public:
38  explicit MarbleLineEdit( QWidget *parent = 0 );
39 
41  ~MarbleLineEdit();
42 
43  void setDecorator( const QPixmap &decorator );
44 
45  void setBusy( bool busy );
46 
47 Q_SIGNALS:
49  void clearButtonClicked();
50 
51  void decoratorButtonClicked();
52 
53 protected:
54  virtual void mouseReleaseEvent( QMouseEvent* event );
55 
56  virtual void resizeEvent( QResizeEvent* event );
57 
58 private Q_SLOTS:
59  void updateClearButtonIcon( const QString& text );
60 
61  void updateClearButton();
62 
63  void updateProgress();
64 
65 private:
66  MarbleLineEditPrivate* const d;
67 };
68 
69 } // namespace Marble
70 
71 #endif // MARBLE_ROUTINGLINEEDIT_H
QWidget
Marble::MarbleLineEdit
A QLineEdit with an embedded clear button.
Definition: MarbleLineEdit.h:32
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
marble_export.h
QLineEdit
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 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