Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/MarbleLineEdit.h
Show All 32 Lines | |||||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | /** Constructor */ | 37 | /** Constructor */ | ||
38 | explicit MarbleLineEdit( QWidget *parent = 0 ); | 38 | explicit MarbleLineEdit( QWidget *parent = 0 ); | ||
39 | 39 | | |||
40 | /** Destructor */ | 40 | /** Destructor */ | ||
41 | ~MarbleLineEdit(); | 41 | ~MarbleLineEdit() override; | ||
42 | 42 | | |||
43 | void setDecorator( const QPixmap &decorator ); | 43 | void setDecorator( const QPixmap &decorator ); | ||
44 | 44 | | |||
45 | void setBusy( bool busy ); | 45 | void setBusy( bool busy ); | ||
46 | 46 | | |||
47 | Q_SIGNALS: | 47 | Q_SIGNALS: | ||
48 | /** The clear button was clicked with the left mouse button */ | 48 | /** The clear button was clicked with the left mouse button */ | ||
49 | void clearButtonClicked(); | 49 | void clearButtonClicked(); | ||
50 | 50 | | |||
51 | void decoratorButtonClicked(); | 51 | void decoratorButtonClicked(); | ||
52 | 52 | | |||
53 | protected: | 53 | protected: | ||
54 | virtual void mouseReleaseEvent( QMouseEvent* event ); | 54 | void mouseReleaseEvent( QMouseEvent* event ) override; | ||
55 | 55 | | |||
56 | virtual void resizeEvent( QResizeEvent* event ); | 56 | void resizeEvent( QResizeEvent* event ) override; | ||
57 | 57 | | |||
58 | private Q_SLOTS: | 58 | private Q_SLOTS: | ||
59 | void updateClearButtonIcon( const QString& text ); | 59 | void updateClearButtonIcon( const QString& text ); | ||
60 | 60 | | |||
61 | void updateClearButton(); | 61 | void updateClearButton(); | ||
62 | 62 | | |||
63 | void updateProgress(); | 63 | void updateProgress(); | ||
64 | 64 | | |||
65 | private: | 65 | private: | ||
66 | MarbleLineEditPrivate* const d; | 66 | MarbleLineEditPrivate* const d; | ||
67 | }; | 67 | }; | ||
68 | 68 | | |||
69 | } // namespace Marble | 69 | } // namespace Marble | ||
70 | 70 | | |||
71 | #endif // MARBLE_MARBLELINEEDIT_H | 71 | #endif // MARBLE_MARBLELINEEDIT_H |