Commit cfbb46da authored by Nicolas Fella's avatar Nicolas Fella Committed by Nicolas Fella
Browse files

[wizard] Enable 1-finger touch scrolling

Summary:
Set a QScroller on the ListView

BUG: 406544

Test Plan:
Scrolling with touchpad: No change
Drag one finger on a touchscreen on the devicelist: List moves

Reviewers: #plasma, drosca, bshah

Reviewed By: bshah

Subscribers: bshah, ngraham, apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D21049
parent 9f822d7f
......@@ -25,6 +25,7 @@
#include <QAction>
#include <QSortFilterProxyModel>
#include <QRegularExpressionValidator>
#include <QScroller>
#include <KMessageWidget>
#include <KLocalizedString>
......@@ -159,6 +160,8 @@ void DiscoverPage::initializePage()
connect(m_manager, &BluezQt::Manager::adapterChanged, this, &DiscoverPage::checkAdapters);
connect(m_manager, &BluezQt::Manager::bluetoothBlockedChanged, this, &DiscoverPage::checkAdapters);
connect(m_manager, &BluezQt::Manager::usableAdapterChanged, this, &DiscoverPage::usableAdapterChanged);
QScroller::grabGesture(deviceView);
}
bool DiscoverPage::isComplete() const
......
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