aboutsummaryrefslogtreecommitdiffstats
path: root/utils/alsoft-config/mainwindow.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-06 02:02:37 -0800
committerChris Robinson <[email protected]>2016-03-06 02:02:37 -0800
commit6971e8684718324f641fa0dba9d0fd31bee240f3 (patch)
tree56f3d12075e8e6da427652e463930ecc3c804948 /utils/alsoft-config/mainwindow.cpp
parent101ae7644e95ad3619d03f59f23b100b9ab01b5f (diff)
Add a simple About page that shows the library build version
Diffstat (limited to 'utils/alsoft-config/mainwindow.cpp')
-rw-r--r--utils/alsoft-config/mainwindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index b94330e1..73494b11 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -292,6 +292,8 @@ MainWindow::MainWindow(QWidget *parent) :
connect(ui->actionLoad, SIGNAL(triggered()), this, SLOT(loadConfigFromFile()));
connect(ui->actionSave_As, SIGNAL(triggered()), this, SLOT(saveConfigAsFile()));
+ connect(ui->actionAbout, SIGNAL(triggered()), this, SLOT(showAboutPage()));
+
connect(ui->closeCancelButton, SIGNAL(clicked()), this, SLOT(cancelCloseAction()));
connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(saveCurrentConfig()));
@@ -427,6 +429,14 @@ void MainWindow::cancelCloseAction()
}
+void MainWindow::showAboutPage()
+{
+ QMessageBox::information(this, tr("About"),
+ tr("OpenAL Soft Configuration Utility.\nBuilt for OpenAL Soft library version ")+(ALSOFT_VERSION ".")
+ );
+}
+
+
QStringList MainWindow::collectHrtfs()
{
QStringList ret;