aboutsummaryrefslogtreecommitdiff
path: root/src/lobby.cpp
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-08-21 12:42:45 -0500
committerGitHub <noreply@github.com>2020-08-21 12:42:45 -0500
commit2c6a690d47ca0c48bef84b3d28d58064365a9934 (patch)
treecdc2a42b51e4bbe3c008adab296ac306d6dbdfd7 /src/lobby.cpp
parentec1c95bdb33dd063880c4cb6c3c9c3cf5d0ed454 (diff)
parentaf1e76022568af1f146e2b49e96af85eb06521b9 (diff)
Merge pull request #246 from AttorneyOnline/2.8
Merges 2.8.5, which is a patch release for 2.8 with no substantially new features. This commit is release-ready.
Diffstat (limited to 'src/lobby.cpp')
-rw-r--r--src/lobby.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lobby.cpp b/src/lobby.cpp
index 3aa488ad..093b0f7d 100644
--- a/src/lobby.cpp
+++ b/src/lobby.cpp
@@ -5,6 +5,8 @@
#include "debug_functions.h"
#include "networkmanager.h"
+#include <QImageReader>
+
Lobby::Lobby(AOApplication *p_ao_app) : QMainWindow()
{
ao_app = p_ao_app;
@@ -353,13 +355,7 @@ void Lobby::on_connect_released()
void Lobby::on_about_clicked()
{
-#ifdef BASSAUDIO
- const QString audio = "BASS";
-#elif defined(QTAUDIO)
- const QString audio = "Qt Multimedia";
-#else
- const QString audio = "null";
-#endif
+ const bool hasApng = QImageReader::supportedImageFormats().contains("APNG");
QString msg =
tr("<h2>Attorney Online %1</h2>"
@@ -389,11 +385,12 @@ void Lobby::on_about_clicked()
"is copyright (c) 2016-2020 Attorney Online developers. Open-source "
"licenses apply. All other assets are the property of their "
"respective owners."
- "<p>Running on Qt version %2 with the %3 audio engine."
+ "<p>Running on Qt version %2 with the BASS audio engine.<br>"
+ "APNG plugin loaded: %3"
"<p>Built on %4")
.arg(ao_app->get_version_string())
.arg(QLatin1String(QT_VERSION_STR))
- .arg(audio)
+ .arg(hasApng ? tr("Yes") : tr("No"))
.arg(QLatin1String(__DATE__));
QMessageBox::about(this, tr("About"), msg);
}