diff options
author | Cameron Youell <cameronyouell@gmail.com> | 2023-01-23 14:11:01 +1100 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-01-22 21:15:22 -0700 |
commit | 3bd96f29d2d42a6cc99da530cbc900ac8176d4ce (patch) | |
tree | 9e02a3cfc57051de83995d60d0179e2bee798715 /Ladybird/LocationEdit.h | |
parent | b97f9f580943e7fd06567765883c1655c61f25ae (diff) | |
download | serenity-3bd96f29d2d42a6cc99da530cbc900ac8176d4ce.zip |
Ladybird: Add LocationEdit Highlighting
Diffstat (limited to 'Ladybird/LocationEdit.h')
-rw-r--r-- | Ladybird/LocationEdit.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Ladybird/LocationEdit.h b/Ladybird/LocationEdit.h index d8ebda5490..20ed6771f1 100644 --- a/Ladybird/LocationEdit.h +++ b/Ladybird/LocationEdit.h @@ -10,10 +10,14 @@ #include <QLineEdit> -class Tab; - class LocationEdit final : public QLineEdit { Q_OBJECT public: - explicit LocationEdit(Tab*); + explicit LocationEdit(QWidget*); + +private: + virtual void focusInEvent(QFocusEvent* event) override; + virtual void focusOutEvent(QFocusEvent* event) override; + + void highlight_location(); }; |