diff options
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bab0520..8eb5462 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -27,6 +27,7 @@ #include <QInputDialog> #include <QWebEngineDownloadItem> #include <QStatusBar> +#include "forms/aboutdialog.h" MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) : QMainWindow(parent), @@ -155,18 +156,8 @@ void MainWindow::closeEvent(QCloseEvent *event) void MainWindow::about() { - QMessageBox::about(this, tr("About"), tr("<h2>smolbote %1</h2>" - "<p><i>yet another Qute browser</i></p>" - "<p>Copyright (C) 2017 Xian Nox</p>" - "<p>This program comes with ABSOLUTELY NO WARRANTY. " - "This is free software, and you are welcome to redistribute it under the conditions set by the GNU GPLv3.</p>" - "<p>" - "Version: %2<br>" - "Configuration: %3" - "</p>") - .arg(qApp->applicationVersion()) - .arg(qApp->applicationLongVersion()) - .arg(sSettings->filePath())); + AboutDialog *dlg = new AboutDialog(this); + dlg->exec(); } void MainWindow::loadProfile(const QString &name) |