diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-04 18:35:55 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-07-04 18:58:10 -0500 |
commit | 47782e4a6a7e25b9a6f1cb267dbe267e92d59a60 (patch) | |
tree | 3d2f89cf6213cfb11d9be0a835ca319bc8709647 /ui/qt5 | |
parent | c7894e122cbd50d6e52642079d2e407adc46d7fe (diff) | |
download | horizon-47782e4a6a7e25b9a6f1cb267dbe267e92d59a60.tar.gz horizon-47782e4a6a7e25b9a6f1cb267dbe267e92d59a60.tar.bz2 horizon-47782e4a6a7e25b9a6f1cb267dbe267e92d59a60.tar.xz horizon-47782e4a6a7e25b9a6f1cb267dbe267e92d59a60.zip |
Qt UI: Use alternative QProcess API
Qt 5.15 deprecates the simpler API, but luckily the more complicated API
is supported back to Qt 5.0.
Diffstat (limited to 'ui/qt5')
-rw-r--r-- | ui/qt5/horizonwizard.cc | 2 | ||||
-rw-r--r-- | ui/qt5/intropage.cc | 4 | ||||
-rw-r--r-- | ui/qt5/partitionmanualpage.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc index b822d1a..7def8c8 100644 --- a/ui/qt5/horizonwizard.cc +++ b/ui/qt5/horizonwizard.cc @@ -189,7 +189,7 @@ std::map<std::string, HorizonWizard::NetworkInterface> probe_ifaces(void) { HorizonWizard::Subarch determinePowerPCPlatform() { if(!QFile::exists("/tmp/horizon-platform")) { QProcess p; - p.execute("horizon-ppc64-detect"); + p.execute("horizon-ppc64-detect", QStringList()); } QFile platform; diff --git a/ui/qt5/intropage.cc b/ui/qt5/intropage.cc index f0c80ee..da32373 100644 --- a/ui/qt5/intropage.cc +++ b/ui/qt5/intropage.cc @@ -47,11 +47,11 @@ IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) { }); connect(toolMenu->addAction("&Partition Editor"), &QAction::triggered, [=](void) { QProcess p; - p.execute("partitionmanager"); + p.execute("partitionmanager", QStringList()); }); connect(toolMenu->addAction("&Web Browser"), &QAction::triggered, [=](void){ QProcess p; - p.execute("netsurf-gtk"); + p.execute("netsurf-gtk", QStringList()); }); toolButton->setMenu(toolMenu); diff --git a/ui/qt5/partitionmanualpage.cc b/ui/qt5/partitionmanualpage.cc index e949118..548421b 100644 --- a/ui/qt5/partitionmanualpage.cc +++ b/ui/qt5/partitionmanualpage.cc @@ -38,7 +38,7 @@ PartitionManualPage::PartitionManualPage(QWidget *parent) button->setWhatsThis(tr("Opens the partition editor.")); connect(button, &QPushButton::clicked, [=]{ QProcess p; - p.execute("partitionmanager"); + p.execute("partitionmanager", QStringList()); }); layout->addStretch(); layout->addWidget(button, 0, Qt::AlignCenter); |