summaryrefslogtreecommitdiff
path: root/Ladybird/SettingsDialog.h
blob: 710f2b84bc8d403501aca4bc59520269554992ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <QDialog>
#include <QFormLayout>
#include <QLineEdit>
#include <QMainWindow>
#include <QPushButton>

#pragma once

class SettingsDialog : public QDialog {
    Q_OBJECT
public:
    explicit SettingsDialog(QMainWindow* window);

    void save();

    virtual void closeEvent(QCloseEvent*) override;

private:
    QFormLayout* m_layout;
    QPushButton* m_ok_button { nullptr };
    QLineEdit* m_homepage { nullptr };
    QMainWindow* m_window { nullptr };
};