mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
43f81f1d0c
Save new tab page value on change when valid and show red error border when URL is not valid
39 lines
862 B
C++
39 lines
862 B
C++
/*
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
|
* Copyright (c) 2023, Cameron Youell <cameronyouell@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <AK/OwnPtr.h>
|
|
#include <QCheckBox>
|
|
#include <QDialog>
|
|
#include <QFormLayout>
|
|
#include <QLineEdit>
|
|
#include <QMainWindow>
|
|
#include <QPushButton>
|
|
#include <QToolButton>
|
|
|
|
#pragma once
|
|
|
|
namespace Ladybird {
|
|
|
|
class SettingsDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
explicit SettingsDialog(QMainWindow* window);
|
|
|
|
private:
|
|
void setup_search_engines();
|
|
|
|
QFormLayout* m_layout;
|
|
QMainWindow* m_window { nullptr };
|
|
OwnPtr<QLineEdit> m_new_tab_page;
|
|
OwnPtr<QCheckBox> m_enable_search;
|
|
OwnPtr<QToolButton> m_search_engine_dropdown;
|
|
OwnPtr<QCheckBox> m_enable_autocomplete;
|
|
OwnPtr<QToolButton> m_autocomplete_engine_dropdown;
|
|
};
|
|
|
|
}
|