mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Add zlib version to GUI & stackdump
This commit is contained in:
parent
3a0f0c2f58
commit
4f4f435e76
7 changed files with 41 additions and 3 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue