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 @@ -668,7 +668,7 @@ { if (dialog == nullptr) { dialog = new QDialog(nullptr); - dialog->setWindowTitle(i18n("Warning")); + dialog->setWindowTitle(i18n("Accessibility feature changes")); dialog->setObjectName(QStringLiteral("AccessXWarning")); dialog->setModal(true); @@ -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(); diff --git a/kaccess/main.cpp b/kaccess/main.cpp --- a/kaccess/main.cpp +++ b/kaccess/main.cpp @@ -52,7 +52,7 @@ // we need an application object for QX11Info QApplication app(argc, argv); - KAboutData about(QStringLiteral("kaccess"), QString(), i18n("KDE Accessibility Tool"), + KAboutData about(QStringLiteral("kaccess"), i18n("KAccess"), i18n("KDE Accessibility Tool"), {}, KAboutLicense::GPL_V2, i18n("(c) 2000, Matthias Hoelzer-Kluepfel"));