summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/qt5/inputpage.cc9
-rw-r--r--ui/qt5/intropage.cc2
-rw-r--r--ui/qt5/partitionmanualpage.cc2
3 files changed, 6 insertions, 7 deletions
diff --git a/ui/qt5/inputpage.cc b/ui/qt5/inputpage.cc
index 5e1958e..cbcc10d 100644
--- a/ui/qt5/inputpage.cc
+++ b/ui/qt5/inputpage.cc
@@ -54,7 +54,7 @@ InputPage::InputPage(QWidget *parent) : HorizonWizardPage(parent) {
if(current == nullptr) return;
QProcess setxkbmap;
- setxkbmap.execute("setxkbmap", {current->text()});
+ setxkbmap.execute("setxkbmap", {current->data(Qt::ToolTipRole).toString()});
});
/* REQ: UI.Input.Test */
@@ -82,10 +82,9 @@ void InputPage::initializePage() {
if(dpy != nullptr) {
XkbRF_VarDefsRec vardefs{};
XkbRF_GetNamesProp(dpy, nullptr, &vardefs);
- QList<QListWidgetItem *> items = layoutList->items();
- for(int idx = 0; idx < items.size(); ++idx) {
- if(items.at(idx)->data(Qt::ToolTipRole).toString == vardefs.layout) {
- layoutList->setCurrentItem(items.at(idx));
+ for(int idx = 0; idx < layoutList->count(); ++idx) {
+ if(layoutList->item(idx)->data(Qt::ToolTipRole).toString() == vardefs.layout) {
+ layoutList->setCurrentRow(idx);
break;
}
}
diff --git a/ui/qt5/intropage.cc b/ui/qt5/intropage.cc
index d0189e7..20d139c 100644
--- a/ui/qt5/intropage.cc
+++ b/ui/qt5/intropage.cc
@@ -59,7 +59,7 @@ IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) {
p->waitForStarted();
if(p->error() == QProcess::FailedToStart) {
// We may be on the -inst CD that has no sudo and runs as root.
- p->start("/usr/bin/partitionmanager");
+ p->start("/usr/bin/partitionmanager", QStringList{});
}
horizonWizard()->tools.push_back(p);
});
diff --git a/ui/qt5/partitionmanualpage.cc b/ui/qt5/partitionmanualpage.cc
index 28329bc..1509045 100644
--- a/ui/qt5/partitionmanualpage.cc
+++ b/ui/qt5/partitionmanualpage.cc
@@ -42,7 +42,7 @@ PartitionManualPage::PartitionManualPage(QWidget *parent)
p.waitForStarted();
if(p.error() == QProcess::FailedToStart) {
// We may be on the -inst CD that has no sudo and runs as root.
- p.start("/usr/bin/partitionmanager");
+ p.start("/usr/bin/partitionmanager", QStringList{});
}
});
layout->addStretch();