mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Create helper function to get libtorrent version
This commit is contained in:
parent
12627bbc10
commit
d0e31adaf7
4 changed files with 15 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue