@@ -11,6 +11,11 @@ extern "C" {
11
11
#include < libavutil/avutil.h>
12
12
}
13
13
14
+ #include < taglib/taglib.h>
15
+ #if TAGLIB_MAJOR_VERSION > 1
16
+ #include < taglib/tversionnumber.h>
17
+ #endif
18
+
14
19
#include " ui_about.h"
15
20
#include " config.hpp"
16
21
#include " about.hpp"
@@ -51,6 +56,22 @@ ui(std::make_unique<Ui::AboutDialog>())
51
56
ffmpeg_version (swresample_version, ui->lswr_ver );
52
57
ffmpeg_version (avutil_version, ui->lavu_ver );
53
58
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
+
54
75
// Encoders
55
76
#define SUPPORT_FEATURE (feature, label ) ui->label->setText (feature ? tr(" Yes" ) : tr( " No" ))
56
77
SUPPORT_FEATURE(config.has_feature.lame, support_lame);
@@ -63,7 +84,17 @@ ui(std::make_unique<Ui::AboutDialog>())
63
84
// Build info
64
85
ui->build_date ->setText (BUILD_DATE);
65
86
#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
+ );
67
98
#endif
68
99
69
100
#if defined(__clang__)
0 commit comments