aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-10-03 18:26:52 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-10-03 18:26:52 -0400
commit5f03c0299c7ddd861cfa18abb11676211ed9f1d1 (patch)
tree0dfa7c5e1c05917decc9a41b5a056e5975061747
parentdb89311932c8fbaccf6e07a5e594b62ad9a87ccc (diff)
downloaddeduper-5f03c0299c7ddd861cfa18abb11676211ed9f1d1.tar.xz
Help related stuff (useless crap rn).
-rw-r--r--qdeduper/mingui.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/qdeduper/mingui.cpp b/qdeduper/mingui.cpp
index 2987ad6..d7c8ea4 100644
--- a/qdeduper/mingui.cpp
+++ b/qdeduper/mingui.cpp
@@ -52,6 +52,8 @@
#include <QInputDialog>
#include <QDesktopServices>
+#define QDEDUPER_VERSION "0.0.0+experimental_phase_1"
+
const std::vector<int> iadefkeys = {
Qt::Key::Key_A, Qt::Key::Key_S, Qt::Key::Key_D, Qt::Key::Key_F,
Qt::Key::Key_G, Qt::Key::Key_H, Qt::Key::Key_J, Qt::Key::Key_K,
@@ -481,10 +483,28 @@ void DeduperMainWindow::setup_menu()
QObject::connect(view_marked, &QAction::triggered, this, &DeduperMainWindow::show_marked);
register_action("view_marked", view_marked);
- help->addAction("Help");
+ QAction *hlp = help->addAction("Help");
+ QObject::connect(hlp, &QAction::triggered, [this] {QMessageBox::information(this, "Help", QString(R"(
+Built-in help is not yet implemented. Please visit the project homepage and check the doc folder in the source code repository.
+)")
+ .trimmed());
+ });
help->addSeparator();
QAction *about = help->addAction("About");
- QObject::connect(about, &QAction::triggered, [this]{QMessageBox::about(this, "About Deduper", "Deduper\nFind similar images on your local filesystem.\n\n0.0.0\nChris Xiong 2022\nMPL-2.0");});
+ QObject::connect(about, &QAction::triggered, [this] {QMessageBox::about(this, "About Deduper", QString(R"(
+Deduper
+Find similar images on your local filesystem.
+
+%1
+
+Chris Xiong 2022
+Based on work of H. Chi Wong, M. Bern and D. Goldberg, "An image signature for any kind of image"
+doi: 10.1109/ICIP.2002.1038047
+Special thanks to: Gary Wang
+
+License: MPL-2.0
+)")
+ .arg(QDEDUPER_VERSION).trimmed());});
QAction *aboutqt = help->addAction("About Qt");
QObject::connect(aboutqt, &QAction::triggered, [this]{QMessageBox::aboutQt(this);});