2023-01-18 17:12:13 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
2023-08-02 20:52:59 +03:00
|
|
|
namespace Ladybird {
|
|
|
|
|
2023-01-18 17:12:13 +03:00
|
|
|
class LocationEdit final : public QLineEdit {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2023-01-23 06:11:01 +03:00
|
|
|
explicit LocationEdit(QWidget*);
|
|
|
|
|
|
|
|
private:
|
|
|
|
virtual void focusInEvent(QFocusEvent* event) override;
|
|
|
|
virtual void focusOutEvent(QFocusEvent* event) override;
|
|
|
|
|
|
|
|
void highlight_location();
|
2023-01-18 17:12:13 +03:00
|
|
|
};
|
2023-08-02 20:52:59 +03:00
|
|
|
|
|
|
|
}
|