diff --git a/plugins/bluetooth/componments/bluetoothapplet.cpp b/plugins/bluetooth/componments/bluetoothapplet.cpp index cc4daf530..3cceb079f 100644 --- a/plugins/bluetooth/componments/bluetoothapplet.cpp +++ b/plugins/bluetooth/componments/bluetoothapplet.cpp @@ -39,6 +39,8 @@ #include #include #include +#include +#include SettingLabel::SettingLabel(QString text, QWidget *parent) : QWidget(parent) @@ -105,6 +107,13 @@ BluetoothApplet::BluetoothApplet(QWidget *parent) { initUi(); initConnect(); + + + QScroller::grabGesture(m_scroarea, QScroller::LeftMouseButtonGesture); + QScrollerProperties propertiesOne = QScroller::scroller(m_scroarea)->scrollerProperties(); + QVariant overshootPolicyOne = QVariant::fromValue(QScrollerProperties::OvershootAlwaysOff); + propertiesOne.setScrollMetric(QScrollerProperties::VerticalOvershootPolicy, overshootPolicyOne); + QScroller::scroller(m_scroarea)->setScrollerProperties(propertiesOne); } bool BluetoothApplet::poweredInitState()