1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:47:35 +00:00

Ladybird: Allow for setting the hompage through SettingsDialog

This commit is contained in:
Filiph Sandström 2022-07-14 06:36:11 +02:00 committed by Andrew Kaster
parent 91e5b6d4f5
commit d60f8807e3
2 changed files with 41 additions and 4 deletions

View file

@ -4,9 +4,11 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <QBoxLayout>
#include <QDialog>
#include <QFormLayout>
#include <QLineEdit>
#include <QMainWindow>
#include <QPushButton>
#pragma once
@ -15,7 +17,13 @@ class SettingsDialog : public QDialog {
public:
explicit SettingsDialog(QMainWindow* window);
void save();
virtual void closeEvent(QCloseEvent*) override;
private:
QBoxLayout* m_layout;
QFormLayout* m_layout;
QPushButton* m_ok_button { nullptr };
QLineEdit* m_homepage { nullptr };
QMainWindow* m_window { nullptr };
};