Return a QString from GetVersionString

This commit is contained in:
Chris Robinson
2019-08-31 22:28:26 -07:00
parent 5becf4bb73
commit a15f25b07a
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ void MainWindow::showAboutPage()
{
QMessageBox::information(this, tr("About"),
tr("OpenAL Soft Configuration Utility.\nBuilt for OpenAL Soft library version ") +
tr(GetVersionString()));
GetVersionString());
}
+2 -2
View File
@@ -4,7 +4,7 @@
#include "version.h"
const char *GetVersionString()
QString GetVersionString()
{
return ALSOFT_VERSION "-" ALSOFT_GIT_COMMIT_HASH " (" ALSOFT_GIT_BRANCH " branch).";
return QStringLiteral(ALSOFT_VERSION "-" ALSOFT_GIT_COMMIT_HASH " (" ALSOFT_GIT_BRANCH " branch).");
}
+3 -1
View File
@@ -1,6 +1,8 @@
#ifndef VERSTR_H
#define VERSTR_H
const char *GetVersionString();
#include <QString>
QString GetVersionString();
#endif /* VERSTR_H */