mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
Ladybird: Allow for setting the hompage through SettingsDialog
This commit is contained in:
parent
91e5b6d4f5
commit
d60f8807e3
Notes:
sideshowbarker
2024-07-17 02:47:01 +09:00
Author: https://github.com/filiphsps
Commit: d60f8807e3
Pull-request: https://github.com/SerenityOS/serenity/pull/16583
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/linusg
2 changed files with 41 additions and 4 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue