Skip to content

Commit 94886cf

Browse files
committed
Add information to about page
1 parent f6718ce commit 94886cf

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions:
3030
statuses: read
3131

3232
env:
33-
VCPKG_COMMITTISH: 1de2026f28ead93ff1773e6e680387643e914ea1
33+
VCPKG_COMMITTISH: 10b7a178346f3f0abef60cecd5130e295afd8da4
3434

3535
jobs:
3636
build_windows:

src/about.cpp

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ extern "C" {
1111
#include <libavutil/avutil.h>
1212
}
1313

14+
#include <taglib/taglib.h>
15+
#if TAGLIB_MAJOR_VERSION > 1
16+
#include <taglib/tversionnumber.h>
17+
#endif
18+
1419
#include "ui_about.h"
1520
#include "config.hpp"
1621
#include "about.hpp"
@@ -51,6 +56,22 @@ ui(std::make_unique<Ui::AboutDialog>())
5156
ffmpeg_version(swresample_version, ui->lswr_ver);
5257
ffmpeg_version(avutil_version, ui->lavu_ver);
5358

59+
#if TAGLIB_MAJOR_VERSION > 1
60+
{
61+
const auto tversion = TagLib::runtimeVersion();
62+
ui->formLayout->addRow(
63+
new QLabel("TagLib:", this),
64+
new QLabel(
65+
QString("%1.%2%3")
66+
.arg(tversion.majorVersion())
67+
.arg(tversion.minorVersion())
68+
.arg(tversion.patchVersion() ? QString(".%1").arg(tversion.patchVersion()) : ""),
69+
this
70+
)
71+
);
72+
}
73+
#endif
74+
5475
// Encoders
5576
#define SUPPORT_FEATURE(feature, label) ui->label->setText(feature ? tr("Yes") : tr( "No"))
5677
SUPPORT_FEATURE(config.has_feature.lame, support_lame);
@@ -63,7 +84,17 @@ ui(std::make_unique<Ui::AboutDialog>())
6384
// Build info
6485
ui->build_date->setText(BUILD_DATE);
6586
#if defined(__GNUC__) && !defined(__clang__)
66-
ui->compiler->setText(QString("GCC %1.%2").arg(__GNUC__).arg(__GNUC_MINOR__));
87+
ui->compiler->setText(QString("GCC %1.%2"
88+
#if __GNUC_PATCHLEVEL__ > 0
89+
".%3"
90+
#endif
91+
)
92+
.arg(__GNUC__)
93+
.arg(__GNUC_MINOR__)
94+
#if __GNUC_PATCHLEVEL__ > 0
95+
.arg(__GNUC_PATCHLEVEL__)
96+
#endif
97+
);
6798
#endif
6899

69100
#if defined(__clang__)

0 commit comments

Comments
 (0)