Qt5: fix deprecation warnings for Qt 5.15
+ replace QDirModel with QFileSystemModel + QProcess::start(QString, OpenMode) is deprecated + QByteArray::append is deprecated + QPixmap* QLabel::pixmap() is deprecated
This commit is contained in:
@@ -374,7 +374,8 @@ void NetworkRetriever::wgetFinished(int exitCode, QProcess::ExitStatus status)
|
||||
bool NetworkRetriever::testWget()
|
||||
{
|
||||
QProcess proc;
|
||||
proc.start(QString::fromLatin1("wget"));
|
||||
proc.setProgram(QString::fromLatin1("wget"));
|
||||
proc.start();
|
||||
bool ok = proc.state() == QProcess::Running;
|
||||
proc.kill();
|
||||
proc.waitForFinished();
|
||||
|
||||
Reference in New Issue
Block a user