mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 04:50:29 +00:00
391beef707
This will help a lot with developing chromes for different UI frameworks where we can see which helper classes and processes are really using Qt vs just using it to get at helper data. As a bonus, remove Qt dependency from WebDriver.
33 lines
625 B
C++
33 lines
625 B
C++
/*
|
|
* 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
|
|
|
|
namespace Ladybird {
|
|
|
|
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_new_tab_page { nullptr };
|
|
QMainWindow* m_window { nullptr };
|
|
};
|
|
|
|
}
|