mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Add zlib version to GUI & stackdump
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
#include <boost/version.hpp>
|
||||
#include <openssl/opensslv.h>
|
||||
#include <libtorrent/version.hpp>
|
||||
#include <zlib.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QRegularExpression>
|
||||
@@ -463,6 +464,13 @@ QString Utils::Misc::opensslVersionString()
|
||||
return version.split(' ', QString::SkipEmptyParts)[1];
|
||||
}
|
||||
|
||||
QString Utils::Misc::zlibVersionString()
|
||||
{
|
||||
// static initialization for usage in signal handler
|
||||
static const QString version {ZLIB_VERSION};
|
||||
return version;
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
QString Utils::Misc::windowsSystemPath()
|
||||
{
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace Utils
|
||||
QString boostVersionString();
|
||||
QString libtorrentVersionString();
|
||||
QString opensslVersionString();
|
||||
QString zlibVersionString();
|
||||
|
||||
QString unitString(SizeUnit unit, bool isSpeed = false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user