summaryrefslogtreecommitdiff
path: root/Ladybird/LocationEdit.h
blob: 20ed6771f19b7356d8ff4f71fa99031a4fafe757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#define AK_DONT_REPLACE_STD

#include <QLineEdit>

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();
};