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:
wmayer
2020-10-15 16:50:11 +02:00
parent 3430adda72
commit 9c72532f5d
9 changed files with 28 additions and 16 deletions

View File

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