diff --git a/kaccess/kaccess.h b/kaccess/kaccess.h --- a/kaccess/kaccess.h +++ b/kaccess/kaccess.h @@ -100,6 +100,7 @@ QDialog *dialog; QLabel *featuresLabel; + QLabel *questionLabel; KComboBox *showModeCombobox; int keys[8]; diff --git a/kaccess/kaccess.cpp b/kaccess/kaccess.cpp --- a/kaccess/kaccess.cpp +++ b/kaccess/kaccess.cpp @@ -691,6 +691,7 @@ featuresLabel->setAlignment(Qt::AlignVCenter); featuresLabel->setWordWrap(true); vlay->addWidget(featuresLabel); + vlay->addSpacing(10); vlay->addStretch(); QHBoxLayout * hlay = new QHBoxLayout(); @@ -706,6 +707,12 @@ showModeCombobox->insertItem(1, i18n("Show This Confirmation Dialog")); showModeCombobox->insertItem(2, i18n("Deactivate All AccessX Features & Gestures")); showModeCombobox->setCurrentIndex(1); + + vlay->addSpacing(10); + vlay->addStretch(); + questionLabel = new QLabel(); + vlay->addWidget(questionLabel); + topLayout->addLayout(lay); auto buttons = new QDialogButtonBox(QDialogButtonBox::Yes | QDialogButtonBox::No, dialog); @@ -858,9 +865,9 @@ } createDialogContents(); - featuresLabel->setText(question + QStringLiteral("\n\n") + explanation + featuresLabel->setText(explanation + QStringLiteral(" ") + i18n("These AccessX settings are needed for some users with motion impairments and can be configured in the KDE System Settings. You can also turn them on and off with standardized keyboard gestures.\n\nIf you do not need them, you can select \"Deactivate all AccessX features and gestures\".")); - + questionLabel->setText(question); KWindowSystem::setState(dialog->winId(), NET::KeepAbove); KUserTimestamp::updateUserTimestamp(0); dialog->show();