Don't use deprecated Qt functions
This commit is contained in:
parent
35386804a6
commit
d9f5959165
|
@ -126,7 +126,7 @@ void SyncthingTestInstance::setInterleavedOutputEnabled(bool interleavedOutputEn
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_interleavedOutput = interleavedOutputEnabled;
|
m_interleavedOutput = interleavedOutputEnabled;
|
||||||
m_syncthingProcess.setReadChannelMode(interleavedOutputEnabled ? QProcess::ForwardedChannels : QProcess::SeparateChannels);
|
m_syncthingProcess.setProcessChannelMode(interleavedOutputEnabled ? QProcess::ForwardedChannels : QProcess::SeparateChannels);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
@ -19,8 +19,8 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
SyncthingTestInstance testInstance;
|
SyncthingTestInstance testInstance;
|
||||||
auto &syncthingProcess(testInstance.syncthingProcess());
|
auto &syncthingProcess(testInstance.syncthingProcess());
|
||||||
syncthingProcess.setReadChannelMode(QProcess::ForwardedChannels);
|
syncthingProcess.setProcessChannelMode(QProcess::ForwardedChannels);
|
||||||
QObject::connect(&syncthingProcess, static_cast<void (QProcess::*)(int)>(&QProcess::finished), &QCoreApplication::exit);
|
QObject::connect(&syncthingProcess, static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), &QCoreApplication::exit);
|
||||||
testInstance.start();
|
testInstance.start();
|
||||||
|
|
||||||
const int res = testInstance.application().exec();
|
const int res = testInstance.application().exec();
|
||||||
|
|
|
@ -28,7 +28,7 @@ WebViewDialog::WebViewDialog(QWidget *parent)
|
||||||
|
|
||||||
#if defined(SYNCTHINGWIDGETS_USE_WEBENGINE)
|
#if defined(SYNCTHINGWIDGETS_USE_WEBENGINE)
|
||||||
m_profile = new QWebEngineProfile(objectName(), this);
|
m_profile = new QWebEngineProfile(objectName(), this);
|
||||||
m_profile->setRequestInterceptor(new WebViewInterceptor(m_connectionSettings, m_profile));
|
m_profile->setUrlRequestInterceptor(new WebViewInterceptor(m_connectionSettings, m_profile));
|
||||||
m_view->setPage(new WebPage(m_profile, this, m_view));
|
m_view->setPage(new WebPage(m_profile, this, m_view));
|
||||||
#else
|
#else
|
||||||
m_view->setPage(new WebPage(this, m_view));
|
m_view->setPage(new WebPage(this, m_view));
|
||||||
|
|
Loading…
Reference in New Issue