mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Create helper function to get libtorrent version
This commit is contained in:
committed by
sledgehammer999
parent
8b851fe2b9
commit
b2db1972f3
@@ -39,6 +39,7 @@
|
||||
#include <QThread>
|
||||
#include <QSysInfo>
|
||||
#include <boost/version.hpp>
|
||||
#include <libtorrent/version.hpp>
|
||||
|
||||
#ifdef DISABLE_GUI
|
||||
#include <QCoreApplication>
|
||||
@@ -661,3 +662,10 @@ QString Utils::Misc::boostVersionString()
|
||||
.arg(BOOST_VERSION % 100);
|
||||
return ver;
|
||||
}
|
||||
|
||||
QString Utils::Misc::libtorrentVersionString()
|
||||
{
|
||||
// static initialization for usage in signal handler
|
||||
static const QString ver = LIBTORRENT_VERSION;
|
||||
return ver;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace Utils
|
||||
#endif
|
||||
QString osName();
|
||||
QString boostVersionString();
|
||||
QString libtorrentVersionString();
|
||||
|
||||
int pythonVersion();
|
||||
QString pythonExecutable();
|
||||
|
||||
Reference in New Issue
Block a user