ladybird/Ladybird/SettingsDialog.h

30 lines
596 B
C
Raw Normal View History

2022-07-14 04:08:30 +00:00
/*
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <QDialog>
#include <QFormLayout>
#include <QLineEdit>
2022-07-14 04:08:30 +00:00
#include <QMainWindow>
#include <QPushButton>
2022-07-14 04:08:30 +00:00
#pragma once
class SettingsDialog : public QDialog {
Q_OBJECT
public:
explicit SettingsDialog(QMainWindow* window);
void save();
virtual void closeEvent(QCloseEvent*) override;
2022-07-14 04:08:30 +00:00
private:
QFormLayout* m_layout;
QPushButton* m_ok_button { nullptr };
QLineEdit* m_homepage { nullptr };
2022-07-14 04:08:30 +00:00
QMainWindow* m_window { nullptr };
};