aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-03-20 02:25:38 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-03-20 02:25:38 +0100
commit7a1d3ef7cc8884f7b4a6e6867b0627a0feb226ce (patch)
treec3faea4496a213696371ef3176d6edf644b68e50 /src/mainwindow.cpp
parentUpdated BUILDING.md (diff)
downloadsmolbote-7a1d3ef7cc8884f7b4a6e6867b0627a0feb226ce.tar.xz
Added custom about box
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp15
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)