29 lines
603 B
C++
29 lines
603 B
C++
// For license of this file, see <project-root-folder>/LICENSE.md.
|
|
|
|
#ifndef LOCATIONLINEEDIT_H
|
|
#define LOCATIONLINEEDIT_H
|
|
|
|
#include "gui/baselineedit.h"
|
|
|
|
class WebBrowser;
|
|
class GoogleSuggest;
|
|
|
|
class LocationLineEdit : public BaseLineEdit {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
// Constructors and destructors.
|
|
explicit LocationLineEdit(QWidget* parent = 0);
|
|
virtual ~LocationLineEdit();
|
|
|
|
protected:
|
|
void focusOutEvent(QFocusEvent* event);
|
|
void mousePressEvent(QMouseEvent* event);
|
|
|
|
private:
|
|
bool m_mouseSelectsAllText;
|
|
GoogleSuggest* m_googleSuggest;
|
|
};
|
|
|
|
#endif // LOCATIONLINEEDIT_H
|