mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
28 lines
541 B
C++
28 lines
541 B
C++
/*
|
|
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "AutoComplete.h"
|
|
#include <AK/OwnPtr.h>
|
|
#include <QLineEdit>
|
|
|
|
namespace Ladybird {
|
|
|
|
class LocationEdit final : public QLineEdit {
|
|
Q_OBJECT
|
|
public:
|
|
explicit LocationEdit(QWidget*);
|
|
|
|
private:
|
|
virtual void focusInEvent(QFocusEvent* event) override;
|
|
virtual void focusOutEvent(QFocusEvent* event) override;
|
|
|
|
void highlight_location();
|
|
AK::OwnPtr<AutoComplete> m_autocomplete;
|
|
};
|
|
|
|
}
|