Fix for Qt 5.9.
This commit is contained in:
parent
02ac1b02f1
commit
942d8b44a9
|
@ -38,7 +38,7 @@ Page {
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "MATRIX LOGIN."
|
text: "MATRIX LOGIN."
|
||||||
font.pointSize: 36
|
font.pointSize: 28
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: "white"
|
color: "white"
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ QImage ImageProvider::requestImage(const QString& id, QSize* pSize,
|
||||||
},
|
},
|
||||||
Qt::BlockingQueuedConnection, &job);
|
Qt::BlockingQueuedConnection, &job);
|
||||||
#else
|
#else
|
||||||
QMetaObject::invokeMethod(m_connection, "getThumbnail",
|
QMetaObject::invokeMethod(m_connection->getConnection(), "getThumbnail",
|
||||||
Qt::BlockingQueuedConnection,
|
Qt::BlockingQueuedConnection,
|
||||||
Q_RETURN_ARG(MediaThumbnailJob*, job),
|
Q_RETURN_ARG(MediaThumbnailJob*, job),
|
||||||
Q_ARG(QUrl, mxcUri), Q_ARG(QSize, requestedSize));
|
Q_ARG(QUrl, mxcUri), Q_ARG(QSize, requestedSize));
|
||||||
|
|
|
@ -21,13 +21,6 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
// Enable this if you need proxy.
|
|
||||||
// QNetworkProxy proxy;
|
|
||||||
// proxy.setType(QNetworkProxy::HttpProxy);
|
|
||||||
// proxy.setHostName("localhost");
|
|
||||||
// proxy.setPort(1082);
|
|
||||||
// QNetworkProxy::setApplicationProxy(proxy);
|
|
||||||
|
|
||||||
qRegisterMetaType<Room *>("Room*");
|
qRegisterMetaType<Room *>("Room*");
|
||||||
|
|
||||||
qRegisterMetaType<User *>("User*");
|
qRegisterMetaType<User *>("User*");
|
||||||
|
|
Loading…
Reference in New Issue