mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Fix another deprecation warning with libtorrent v0.16
This commit is contained in:
parent
3995af6489
commit
8847df60e1
2 changed files with 10 additions and 0 deletions
|
@ -471,6 +471,15 @@ bool QTorrentHandle::is_auto_managed() const {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_sequential_download() const {
|
||||||
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
|
torrent_status status = torrent_handle::status(0x0);
|
||||||
|
return status.sequential_download;
|
||||||
|
#else
|
||||||
|
return torrent_handle::is_sequential_download();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
qlonglong QTorrentHandle::active_time() const {
|
qlonglong QTorrentHandle::active_time() const {
|
||||||
#if LIBTORRENT_VERSION_MINOR > 15
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
return torrent_handle::status(0x0).active_time;
|
return torrent_handle::status(0x0).active_time;
|
||||||
|
|
|
@ -104,6 +104,7 @@ public:
|
||||||
bool is_seed() const;
|
bool is_seed() const;
|
||||||
bool is_checking() const;
|
bool is_checking() const;
|
||||||
bool is_auto_managed() const;
|
bool is_auto_managed() const;
|
||||||
|
bool is_sequential_download() const;
|
||||||
qlonglong active_time() const;
|
qlonglong active_time() const;
|
||||||
qlonglong seeding_time() const;
|
qlonglong seeding_time() const;
|
||||||
QString creation_date() const;
|
QString creation_date() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue