Commit c0bd3893 authored by Roman Gilg's avatar Roman Gilg
Browse files

[Mouse KCM] Remove single/double click setting

Summary: The setting has been moved to the Workspace KCM.

Test Plan: Manually

Reviewers: #plasma, mart, ngraham

Reviewed By: #plasma, mart, ngraham

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D12947
parent d3ef8955
......@@ -81,8 +81,6 @@ void EvdevSettings::load(X11EvdevBackend *backend)
dragStartTime = group.readEntry("StartDragTime", 500);
dragStartDist = group.readEntry("StartDragDist", 4);
wheelScrollLines = group.readEntry("WheelScrollLines", 3);
singleClick = group.readEntry("SingleClick", true);
}
// see KGlobalSettings::emitChange
......@@ -127,7 +125,6 @@ void EvdevSettings::save()
group.writeEntry("StartDragTime", dragStartTime, KConfig::Persistent);
group.writeEntry("StartDragDist", dragStartDist, KConfig::Persistent);
group.writeEntry("WheelScrollLines", wheelScrollLines, KConfig::Persistent);
group.writeEntry("SingleClick", singleClick, KConfig::Persistent);
group.sync();
kcminputProfile->sync();
......
......@@ -133,50 +133,6 @@
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="GroupBox1">
<property name="title">
<string>Icons</string>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="_4">
<item>
<widget class="QRadioButton" name="doubleClick">
<property name="whatsThis">
<string>The default behavior in KDE is to select and activate icons with a single click of the left button on your pointing device. This behavior is consistent with what you would expect when you click links in most web browsers. If you would prefer to select with a single click, and activate with a double click, check this option.</string>
</property>
<property name="text">
<string>Dou&amp;ble-click to open files and folders (select icons on first click)</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">clickGroup</string>
</attribute>
</widget>
</item>
<item>
<widget class="QRadioButton" name="singleClick">
<property name="whatsThis">
<string>Activates and opens a file or folder with a single click.</string>
</property>
<property name="text">
<string>&amp;Single-click to open files and folders</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string notr="true">clickGroup</string>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="spacer">
<property name="orientation">
......
......@@ -63,9 +63,7 @@ XlibConfig::XlibConfig(ConfigContainer *parent, InputBackend *backend)
connect(handedGroup, SIGNAL(buttonClicked(int)), m_parent, SLOT(changed()));
connect(handedGroup, SIGNAL(buttonClicked(int)), this, SLOT(slotHandedChanged(int)));
connect(doubleClick, SIGNAL(clicked()), m_parent, SLOT(changed()));
connect(singleClick, SIGNAL(clicked()), m_parent, SLOT(changed()));
connect(cbScrollPolarity, SIGNAL(clicked()), m_parent, SLOT(changed()));
connect(cbScrollPolarity, SIGNAL(clicked()), this, SLOT(slotScrollPolarityChanged()));
......@@ -200,9 +198,6 @@ void XlibConfig::load()
dragStartDist->setValue(settings->dragStartDist);
wheelScrollLines->setValue(settings->wheelScrollLines);
singleClick->setChecked(settings->singleClick);
doubleClick->setChecked(!settings->singleClick);
KConfig ac("kaccessrc");
KConfigGroup group = ac.group("Mouse");
......@@ -245,7 +240,6 @@ void XlibConfig::save()
settings->dragStartTime = dragStartTime->value();
settings->dragStartDist = dragStartDist->value();
settings->wheelScrollLines = wheelScrollLines->value();
settings->singleClick = !doubleClick->isChecked();
settings->reverseScrollPolarity = cbScrollPolarity->isChecked();
m_backend->apply();
......@@ -282,8 +276,6 @@ void XlibConfig::defaults()
dragStartTime->setValue(500);
dragStartDist->setValue(4);
wheelScrollLines->setValue(3);
doubleClick->setChecked(!KDE_DEFAULT_SINGLECLICK);
singleClick->setChecked(KDE_DEFAULT_SINGLECLICK);
mouseKeys->setChecked(false);
mk_delay->setValue(160);
......
Supports Markdown
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