Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit c321b5d

Browse files
committed
fixes for Qt 5.11.0 (mostly ro)
1 parent 835bfaf commit c321b5d

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

src/datasync/datasync.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TARGET = QtDataSync
22

3-
QT = core jsonserializer sql websockets scxml remoteobjects
3+
QT = core jsonserializer sql websockets scxml remoteobjects remoteobjects-private
44

55
HEADERS += \
66
qtdatasync_global.h \

src/datasync/rothreadedbackend/threadedclient.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,22 @@ void ThreadedClientIoDevice::connectToServer()
5555
emit shouldReconnect(this);
5656
}
5757

58-
bool ThreadedClientIoDevice::isOpen()
58+
bool ThreadedClientIoDevice::isOpen() const
5959
{
6060
return !isClosing() && _buffer->isOpen();
6161
}
6262

63-
QIODevice *ThreadedClientIoDevice::connection()
63+
QIODevice *ThreadedClientIoDevice::connection() const
6464
{
6565
return _buffer;
6666
}
6767

68+
void ThreadedClientIoDevice::doDisconnectFromServer()
69+
{
70+
if(_buffer->isOpen())
71+
_buffer->close();
72+
}
73+
6874
void ThreadedClientIoDevice::doClose()
6975
{
7076
if(_buffer->isOpen())

src/datasync/rothreadedbackend/threadedclient_p.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <QtCore/QUrl>
55
#include <QtCore/QTimer>
66

7-
#include <QtRemoteObjects/QtROServerFactory>
7+
#include <QtRemoteObjects/private/qconnectionfactories_p.h>
88

99
#include "qtdatasync_global.h"
1010

@@ -21,10 +21,11 @@ class Q_DATASYNC_EXPORT ThreadedClientIoDevice : public ClientIoDevice
2121
~ThreadedClientIoDevice();
2222

2323
void connectToServer() override;
24-
bool isOpen() override;
25-
QIODevice *connection() override;
24+
bool isOpen() const override;
25+
QIODevice *connection() const override;
2626

2727
protected:
28+
void doDisconnectFromServer() override;
2829
void doClose() override;
2930

3031
private Q_SLOTS:

src/datasync/rothreadedbackend/threadedserver_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <QtCore/QUrl>
55
#include <QtCore/QMutex>
66

7-
#include <QtRemoteObjects/QtROServerFactory>
7+
#include <QtRemoteObjects/private/qconnectionfactories_p.h>
88

99
#include "qtdatasync_global.h"
1010
#include "exchangebuffer_p.h"

src/imports/datasync/datasync.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ OTHER_FILES += qmldir
2727

2828
generate_qmltypes {
2929
typeextra1.target = qmltypes
30-
typeextra1.depends += export LD_LIBRARY_PATH := "$$shadowed($$dirname(_QMAKE_CONF_))/lib/:$(LD_LIBRARY_PATH)"
30+
typeextra1.depends += export LD_LIBRARY_PATH := "$$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(LD_LIBRARY_PATH)"
3131
typeextra2.target = qmltypes
3232
typeextra2.depends += export QML2_IMPORT_PATH := "$$shadowed($$dirname(_QMAKE_CONF_))/qml/"
3333
QMAKE_EXTRA_TARGETS += typeextra1 typeextra2

0 commit comments

Comments
 (0)