diff --git a/README.markdown b/README.markdown index 1e1d4dc..7385f65 100644 --- a/README.markdown +++ b/README.markdown @@ -4,7 +4,7 @@ This library is a collection of utilities for Qt's Model/View framework. ### Status [![Build Status](https://github.com/VSRonin/QtModelUtilities/actions/workflows/buildtest.yml/badge.svg?branch=master)](https://github.com/VSRonin/QtModelUtilities/actions) -[![Qt 5.1 Build Status](https://travis-ci.org/VSRonin/QtModelUtilities.svg?branch=master)](https://travis-ci.org/VSRonin/QtModelUtilities) +[![Qt 5.1 Build Status](https://travis-ci.com/VSRonin/QtModelUtilities.svg?branch=master)](https://travis-ci.com/VSRonin/QtModelUtilities) ### Contents diff --git a/tests/tst_HtmlModelSerialiser/tst_htmlmodelserialiser.cpp b/tests/tst_HtmlModelSerialiser/tst_htmlmodelserialiser.cpp index 996f0fe..76be816 100644 --- a/tests/tst_HtmlModelSerialiser/tst_htmlmodelserialiser.cpp +++ b/tests/tst_HtmlModelSerialiser/tst_htmlmodelserialiser.cpp @@ -89,7 +89,12 @@ void tst_HtmlModelSerialiser::validateHtmlOutput() validateReply = qnam->post(validateReq, htmlData); QEventLoop replyWaitLoop; QObject::connect(validateReply, &QNetworkReply::finished, &replyWaitLoop, &QEventLoop::quit); +# if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0)) + QObject::connect(validateReply, static_cast(&QNetworkReply::error), &replyWaitLoop, + &QEventLoop::quit); +# else QObject::connect(validateReply, &QNetworkReply::errorOccurred, &replyWaitLoop, &QEventLoop::quit); +# endif QObject::connect(validateReply, &QNetworkReply::sslErrors, validateReply, static_cast(&QNetworkReply::ignoreSslErrors)); replyWaitLoop.exec();