mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use libtorrent version.hpp instead of our own DEFINE
This commit is contained in:
parent
2e0c8f848f
commit
5f23cbc470
17 changed files with 79 additions and 62 deletions
|
@ -39,6 +39,7 @@
|
|||
#include <QDesktopWidget>
|
||||
#include <QStyleFactory>
|
||||
|
||||
#include <libtorrent/version.hpp>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -283,7 +284,7 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
|||
}
|
||||
// Tab selection mecanism
|
||||
connect(tabSelection, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*)));
|
||||
#ifndef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR < 15
|
||||
checkAppendqB->setVisible(false);
|
||||
#endif
|
||||
// Load Advanced settings
|
||||
|
@ -403,7 +404,7 @@ void options_imp::saveOptions(){
|
|||
#endif
|
||||
settings.setValue(QString::fromUtf8("TempPath"), temp_path);
|
||||
settings.setValue(QString::fromUtf8("AppendLabel"), checkAppendLabel->isChecked());
|
||||
#ifdef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
settings.setValue(QString::fromUtf8("UseIncompleteExtension"), checkAppendqB->isChecked());
|
||||
#endif
|
||||
settings.setValue(QString::fromUtf8("PreAllocation"), preAllocateAllFiles());
|
||||
|
@ -644,7 +645,7 @@ void options_imp::loadOptions(){
|
|||
#endif
|
||||
textTempPath->setText(temp_path);
|
||||
checkAppendLabel->setChecked(Preferences::appendTorrentLabel());
|
||||
#ifdef LIBTORRENT_0_15
|
||||
#if LIBTORRENT_VERSION_MINOR > 14
|
||||
checkAppendqB->setChecked(Preferences::useIncompleteFilesExtension());
|
||||
#endif
|
||||
checkPreallocateAll->setChecked(Preferences::preAllocateAllFiles());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue