mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 12:57:45 +00:00
Add help menu
This commit is contained in:
parent
02bc4efa0a
commit
b7e22b428c
1 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
#include <QMenuBar>
|
#include <QMenuBar>
|
||||||
#include <keychain.h>
|
#include <keychain.h>
|
||||||
#include <QFormLayout>
|
#include <QFormLayout>
|
||||||
|
#include <QApplication>
|
||||||
|
|
||||||
#include "settingswindow.h"
|
#include "settingswindow.h"
|
||||||
#include "squareboot.h"
|
#include "squareboot.h"
|
||||||
|
@ -53,6 +54,17 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo
|
||||||
});
|
});
|
||||||
#endif
|
#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 <a href='https://github.com/redstrate/xivlauncher'>here</a>.");
|
||||||
|
});
|
||||||
|
|
||||||
|
QAction* showAboutQt = helpMenu->addAction("About Qt");
|
||||||
|
connect(showAboutQt, &QAction::triggered, [=] {
|
||||||
|
QApplication::aboutQt();
|
||||||
|
});
|
||||||
|
|
||||||
auto layout = new QFormLayout();
|
auto layout = new QFormLayout();
|
||||||
|
|
||||||
profileSelect = new QComboBox();
|
profileSelect = new QComboBox();
|
||||||
|
|
Loading…
Add table
Reference in a new issue