Return a QString from GetVersionString
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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).");
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef VERSTR_H
|
||||
#define VERSTR_H
|
||||
|
||||
const char *GetVersionString();
|
||||
#include <QString>
|
||||
|
||||
QString GetVersionString();
|
||||
|
||||
#endif /* VERSTR_H */
|
||||
|
||||
Reference in New Issue
Block a user