mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user