| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef LOCATIONLINEEDIT_H |
| 4 | #define LOCATIONLINEEDIT_H |
| 5 | |
| 6 | #include "gui/reusable/baselineedit.h" |
| 7 | |
| 8 | class WebBrowser; |
| 9 | class GoogleSuggest; |
| 10 | |
| 11 | class LocationLineEdit : public BaseLineEdit { |
| 12 | Q_OBJECT |
| 13 | |
| 14 | public: |
| 15 | explicit LocationLineEdit(QWidget* parent = nullptr); |
| 16 | virtual ~LocationLineEdit(); |
| 17 | |
| 18 | protected: |
| 19 | void focusOutEvent(QFocusEvent* event); |
| 20 | void mousePressEvent(QMouseEvent* event); |
| 21 | |
| 22 | private: |
| 23 | bool m_mouseSelectsAllText; |
| 24 | GoogleSuggest* m_googleSuggest; |
| 25 | }; |
| 26 | |
| 27 | #endif // LOCATIONLINEEDIT_H |