Commit 923e7972 authored by Michael Weghorn's avatar Michael Weghorn Committed by David Edmundson
Browse files

kcmaccess: Allow configuring Orca on Wayland

The Orca screen reader works on Wayland, so allow
to enabled/disable and configure it in the KCM when
in a Wayland session as well.

This removes the restriction that kcmaccess was only
available on X11/XCB, yet disables all tabs except
the screen reader one, since the other features
that could be configured didn't seem to work in a
quick test on Wayland.

BUG: 414546
parent b2b8bcde
......@@ -214,6 +214,7 @@ KAccessConfig::KAccessConfig(QWidget *parent, const QVariantList& args)
// gestures --------------------------------------------
if (QGuiApplication::platformName() == "xcb") {
QString shortcut = mouseKeysShortcut(QX11Info::display());
if (shortcut.isEmpty())
ui.gestures->setToolTip(i18n("Here you can activate keyboard gestures that turn on the following features: \n"
......@@ -224,6 +225,12 @@ KAccessConfig::KAccessConfig(QWidget *parent, const QVariantList& args)
"Mouse Keys: %1\n"
"Sticky keys: Press Shift key 5 consecutive times\n"
"Slow keys: Hold down Shift for 8 seconds", shortcut));
} else {
// functionality configured in those tabs currently only works for the X11 case, so disable them
for (QWidget* tab : {ui.tabBell, ui.tabModifier, ui.tabKeyFilters, ui.tabActivationGestures, ui.tabMouseKeys}) {>setTabEnabled(>indexOf(tab), false);
connect(ui.gestures, &QCheckBox::clicked, this, &KAccessConfig::configChanged);
connect(ui.timeout, &QCheckBox::clicked, this, &KAccessConfig::configChanged);
......@@ -7,7 +7,6 @@ X-DocPath=kcontrol/kcmaccess/index.html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment