]> Nutra Git (v1) - nutratech/gui.git/commitdiff
add info dialo
authorShane Jaroch <chown_tee@proton.me>
Wed, 21 Jan 2026 19:49:28 +0000 (14:49 -0500)
committerShane Jaroch <chown_tee@proton.me>
Wed, 21 Jan 2026 19:49:28 +0000 (14:49 -0500)
src/mainwindow.cpp

index c03a20bb4b76078e4833f87b1677e611c473939d..c3261083db249521c1effe82c38be23677138a01 100644 (file)
@@ -59,6 +59,16 @@ void MainWindow::setupUi() {
     auto* aboutAction = helpMenu->addAction("&About");
     connect(aboutAction, &QAction::triggered, this, &MainWindow::onAbout);
 
+    auto* infoAction = helpMenu->addAction("&Info");
+    connect(infoAction, &QAction::triggered, this, [this]() {
+        QMessageBox::information(
+            this, "Philosophy",
+            "It's a free app designed not as a weight-loss app but a true nutrition "
+            "coach, giving insights into what you're getting and what you're lacking, "
+            "empowering you to make more informed and healthy decisions and live more "
+            "of the vibrant life you were put here for.");
+    });
+
     auto* centralWidget = new QWidget(this);
     setCentralWidget(centralWidget);