Commit fe4d395d authored by Méven Car's avatar Méven Car Committed by Méven Car

Touchpad kcm: On X11 hide scroll speed as it is not supported

Summary: BUG: 420079

Test Plan: Tested locally

Reviewers: #kwin, davidedmundson, ngraham

Reviewed By: ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D28829
parent 23aeddc9
......@@ -108,6 +108,9 @@ public:
//
// Scroll Factor
bool supportsScrollFactor() const override {
return true;
}
qreal scrollFactor() const
{
return m_scrollFactor.val;
......
......@@ -137,6 +137,7 @@ class LibinputCommon : public QObject
Q_PROPERTY(bool defaultClickMethodClickfinger READ defaultClickMethodClickfinger CONSTANT)
Q_PROPERTY(bool clickMethodClickfinger READ isClickMethodClickfinger WRITE setClickMethodClickfinger NOTIFY clickMethodChanged)
Q_PROPERTY(bool supportsScrollFactor READ supportsScrollFactor CONSTANT)
public:
LibinputCommon() {}
......@@ -355,6 +356,8 @@ public:
m_clickMethodClickfinger.set(set);
}
virtual bool supportsScrollFactor() const = 0;
Q_SIGNALS:
void enabledChanged();
// Tapping
......
......@@ -122,6 +122,10 @@ private:
return m_supportsClickMethodClickfinger.avail && m_supportsClickMethodClickfinger.val;
}
bool supportsScrollFactor() const override {
return false;
}
// Tapping
Prop<bool> m_lrmTapButtonMapEnabledByDefault = Prop<bool>("lrmTapButtonMapEnabledByDefault");
Prop<bool> m_lrmTapButtonMap = Prop<bool>("lrmTapButtonMap");
......
......@@ -603,6 +603,7 @@ Kirigami.ScrollablePage {
Layouts.GridLayout {
Kirigami.FormData.label: i18nd("kcm_touchpad", "Scrolling speed:")
Kirigami.FormData.buddyFor: scrollFactor
visible: touchpad.supportsScrollFactor
columns: 3
......
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