fix: 消除qt警告

This commit is contained in:
2022-12-26 19:05:02 +08:00
parent d75fdd9f80
commit e645c5e526
5 changed files with 18 additions and 15 deletions

View File

@@ -93,7 +93,7 @@ void AppIntoPage::openUrl(QUrl url)
bool isInstalled;
bool isUpdated;
QString packagename = info["Pkgname"].toString();
isInstall.start("dpkg -s " + info["Pkgname"].toString());
isInstall.start("dpkg -s " + info["Pkgname"].toString(), QStringList());
qDebug()<<info["Pkgname"].toString();
isInstall.waitForFinished(180*1000); // 默认超时 3 分钟
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
@@ -102,12 +102,12 @@ void AppIntoPage::openUrl(QUrl url)
isInstalled = true;
QProcess isUpdate;
isUpdate.start("dpkg-query --showformat='${Version}' --show " + info["Pkgname"].toString());
isUpdate.start("dpkg-query --showformat='${Version}' --show " + info["Pkgname"].toString(), QStringList());
isUpdate.waitForFinished(180*1000); // 默认超时 3 分钟
QString localVersion = isUpdate.readAllStandardOutput();
localVersion.replace("'", "");
isUpdate.start("dpkg --compare-versions " + localVersion + " ge " + info["Version"].toString());
isUpdate.start("dpkg --compare-versions " + localVersion + " ge " + info["Version"].toString(), QStringList());
isUpdate.waitForFinished(180*1000); // 默认超时 3 分钟
if(!isUpdate.exitCode())
{
@@ -377,7 +377,7 @@ void AppIntoPage::on_updateButton_clicked()
if (actionSubmissionClientStatus.exists())
{
qDebug() << "反馈器存在";
QProcess::startDetached("sh /opt/durapps/store.spark-app.feedback/launch.sh");
QProcess::startDetached("sh /opt/durapps/store.spark-app.feedback/launch.sh", QStringList());
}
else
{