diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 5a85ee2..bdd8019 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -166,6 +166,34 @@ void MainWindow::connectSignals()
}
}
});
+ connect(
+ ui->menuAboutAction, &QAction::triggered, this,
+ [this](bool checked)
+ {
+ QString html = "
looqs
";
+ html += "Full-text search with previews for your files
";
+ html += "Copyright (c) 2018-2022: Albert Schwarzkopf
";
+ html += QString("Version: %1
").arg(Common::versionText());
+ html += "Contact: looqs at quitesimple dot org
";
+ html += "Website: https://quitesimple.org
";
+ html +=
+ "Source code: https://github.com/quitesimpleorg/looqs
";
+ html += "License: GPLv3
";
+ html += "looqs is open source and free of charge in the hope it will be useful. The author(s) do not "
+ "give any warranty. In the unlikely event of any damage, the author(s) cannot be held responsible. "
+ "You are using looqs at your own risk";
+
+ QMessageBox::about(this, "About looqs", html);
+ });
+ connect(ui->menuOpenConfigInTextEditorAction, &QAction::triggered, this,
+ [this](bool checked)
+ {
+ QSettings setting;
+ QDesktopServices::openUrl(setting.fileName());
+ });
+ connect(ui->menuAboutQtAction, &QAction::triggered, this,
+ [this](bool checked) { QMessageBox::aboutQt(this, "About Qt"); });
}
void MainWindow::spinPreviewPageValueChanged(int val)
diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui
index 18191d6..c94cfc0 100644
--- a/gui/mainwindow.ui
+++ b/gui/mainwindow.ui
@@ -82,7 +82,7 @@
0
0
1185
- 419
+ 384
@@ -363,6 +363,40 @@
+
+
+
+ About
+
+
+
+
+ Open config in text editor
+
+
+
+
+ About Qt
+
+