mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 07:57:22 -06:00
- Fix compilation with Qt 4.4
- Fix compilation with older boost libraries
This commit is contained in:
@@ -32,13 +32,19 @@
|
||||
#define TORRENTPERSISTENTDATA_H
|
||||
|
||||
#include <QSettings>
|
||||
#include <QHash>
|
||||
#include <QVariant>
|
||||
#include <libtorrent/magnet_uri.hpp>
|
||||
|
||||
#include "qtorrenthandle.h"
|
||||
#include "misc.h"
|
||||
|
||||
#ifdef QT_4_5
|
||||
#include <QHash>
|
||||
#else
|
||||
#include <QMap>
|
||||
#define QHash QMap
|
||||
#define toHash toMap
|
||||
#endif
|
||||
|
||||
class TorrentTempData {
|
||||
public:
|
||||
static bool hasTempData(QString hash) {
|
||||
@@ -256,4 +262,8 @@ public:
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#undef QHash
|
||||
#undef toHash
|
||||
|
||||
#endif // TORRENTPERSISTENTDATA_H
|
||||
|
||||
Reference in New Issue
Block a user