Commit a3074874 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile without deprecated method

parent 3ae8232d
...@@ -38,6 +38,9 @@ include(KDECMakeSettings) ...@@ -38,6 +38,9 @@ include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE) include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMOptionalAddSubdirectory) include(ECMOptionalAddSubdirectory)
include(FeatureSummary) include(FeatureSummary)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
endif()
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#define OBEXAGENT_H #define OBEXAGENT_H
#include <BluezQt/ObexAgent> #include <BluezQt/ObexAgent>
#include <QHash>
class KJob; class KJob;
class BlueDevilDaemon; class BlueDevilDaemon;
......
...@@ -444,7 +444,7 @@ QList<KIO::UDSEntry> KioFtp::listFolder(const QUrl &url, bool *ok) ...@@ -444,7 +444,7 @@ QList<KIO::UDSEntry> KioFtp::listFolder(const QUrl &url, bool *ok)
entry.insert(KIO::UDSEntry::UDS_NAME, item.name()); entry.insert(KIO::UDSEntry::UDS_NAME, item.name());
entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, item.label()); entry.insert(KIO::UDSEntry::UDS_DISPLAY_NAME, item.label());
entry.insert(KIO::UDSEntry::UDS_ACCESS, 0700); entry.insert(KIO::UDSEntry::UDS_ACCESS, 0700);
entry.insert(KIO::UDSEntry::UDS_MODIFICATION_TIME, item.modificationTime().toTime_t()); entry.insert(KIO::UDSEntry::UDS_MODIFICATION_TIME, item.modificationTime().toSecsSinceEpoch());
entry.insert(KIO::UDSEntry::UDS_SIZE, item.size()); entry.insert(KIO::UDSEntry::UDS_SIZE, item.size());
if (item.type() == BluezQt::ObexFileTransferEntry::Folder) { if (item.type() == BluezQt::ObexFileTransferEntry::Folder) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment