From b7e22b428c1cfc6c4a34d6ca57a3c04e591a5249 Mon Sep 17 00:00:00 2001 From: redstrate Date: Fri, 3 Dec 2021 17:19:58 -0500 Subject: [PATCH] Add help menu --- src/launcherwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index ad2db4e..2c38d58 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include "settingswindow.h" #include "squareboot.h" @@ -53,6 +54,17 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo }); #endif + QMenu* helpMenu = menuBar()->addMenu("Help"); + QAction* showAbout = helpMenu->addAction("About xivlauncher"); + connect(showAbout, &QAction::triggered, [=] { + QMessageBox::about(this, "About xivlauncher", "The source code is available here."); + }); + + QAction* showAboutQt = helpMenu->addAction("About Qt"); + connect(showAboutQt, &QAction::triggered, [=] { + QApplication::aboutQt(); + }); + auto layout = new QFormLayout(); profileSelect = new QComboBox();