diff options
| author | Tannin <devnull@localhost> | 2014-01-16 20:43:42 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-01-16 20:43:42 +0100 |
| commit | 40d20ab294ad7afd4b5747b306e45d0f8712a386 (patch) | |
| tree | ca97a4b4c404fc426e3239b0d0262624cca6c65d /src/mainwindow.cpp | |
| parent | 6ed82866b07414e91dfe0c47ee5f580bfd4fe479 (diff) | |
- added an about dialog
- updated json library
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 76bff3a0..14e27e76 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -56,6 +56,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "savetextasdialog.h" #include "problemsdialog.h" #include "previewdialog.h" +#include "aboutdialog.h" #include <gameinfo.h> #include <appconfig.h> #include <utility.h> @@ -547,6 +548,12 @@ bool MainWindow::checkForProblems() return false; } +void MainWindow::about() +{ + AboutDialog dialog(m_Updater.getVersion().displayString(), this); + dialog.exec(); +} + void MainWindow::createHelpWidget() { @@ -604,6 +611,8 @@ void MainWindow::createHelpWidget() } buttonMenu->addMenu(tutorialMenu); + buttonMenu->addAction(tr("About"), this, SLOT(about())); + buttonMenu->addAction(tr("About Qt"), qApp, SLOT(aboutQt())); } |
