]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Propagator: fix qt4 build
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 2 May 2016 15:34:21 +0000 (17:34 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Mon, 2 May 2016 15:34:21 +0000 (17:34 +0200)
propagatedownload.cpp:712:35: error: 'seenLockedFile' is a protected member of 'OCC::OwncloudPropagator'

Signals are protected in Qt4 but public in Qt5, mark the class accessing it
as friend when compiling with Qt4

src/libsync/owncloudpropagator.h

index db8a86b41cb803ddd17e961e06a16cb6036c5578..85fa42617cc38774f62c6a6ce93fe5dc7f06bf23 100644 (file)
@@ -379,6 +379,11 @@ private:
     /** Stores the time since a job touched a file. */
     QHash<QString, QElapsedTimer> _touchedFiles;
     mutable QMutex _touchedFilesMutex;
+
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
+    // access to signals which are protected in Qt4
+    friend class PropagateDownloadFileQNAM;
+#endif
 };