From 6cf244277a5ba8434b85d2b9a861ceed1c6dfb88 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 11 Dec 2017 21:57:25 +0100 Subject: Autogenerating settings dialog --- src/mainwindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3a2d71d..f48de70 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -39,6 +39,7 @@ #include #include "browser.h" +#include MainWindow::MainWindow(std::shared_ptr config, QWidget *parent) : QMainWindow(parent), @@ -218,6 +219,12 @@ void MainWindow::about() dlg->exec(); } +void MainWindow::showSettingsDialog() +{ + SettingsDialog *dlg = new SettingsDialog(m_config, this); + dlg->exec(); +} + void MainWindow::setProfile(WebEngineProfile *profile) { Q_ASSERT(profile != nullptr); -- cgit v1.2.1