Fix for Qt 5.9.

This commit is contained in:
Black Hat 2018-08-01 23:49:47 +08:00
parent 02ac1b02f1
commit 942d8b44a9
3 changed files with 2 additions and 9 deletions

View File

@ -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"
} }

View File

@ -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));

View File

@ -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*");