Skip to content

Commit

Permalink
fixed signal changing name
Browse files Browse the repository at this point in the history
  • Loading branch information
VSRonin committed Apr 8, 2021
1 parent be213bf commit cc31374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions tests/tst_HtmlModelSerialiser/tst_htmlmodelserialiser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<void (QNetworkReply::*)(QNetworkReply::NetworkError)>(&QNetworkReply::error), &replyWaitLoop,
&QEventLoop::quit);
# else
QObject::connect(validateReply, &QNetworkReply::errorOccurred, &replyWaitLoop, &QEventLoop::quit);
# endif
QObject::connect(validateReply, &QNetworkReply::sslErrors, validateReply,
static_cast<void (QNetworkReply::*)()>(&QNetworkReply::ignoreSslErrors));
replyWaitLoop.exec();
Expand Down

0 comments on commit cc31374

Please sign in to comment.