mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: 修复任务栏蓝牙列表桌面触摸框无法上下滑动
修复任务栏蓝牙列表桌面触摸框无法上下滑动 Log: 修复任务栏蓝牙列表桌面触摸框无法上下滑动 Bug: https://pms.uniontech.com/zentao/bug-view-113135.html Influence: 任务栏蓝牙列表列表触摸滑动 Change-Id: I5c5d2d486407b5a5a39c8a4febf1dbd695713731
This commit is contained in:
parent
bc62857e46
commit
613bebfb46
@ -39,6 +39,8 @@
|
||||
#include <QBoxLayout>
|
||||
#include <QMouseEvent>
|
||||
#include <QDebug>
|
||||
#include <QScroller>
|
||||
#include <QMouseEvent>
|
||||
|
||||
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::OvershootPolicy>(QScrollerProperties::OvershootAlwaysOff);
|
||||
propertiesOne.setScrollMetric(QScrollerProperties::VerticalOvershootPolicy, overshootPolicyOne);
|
||||
QScroller::scroller(m_scroarea)->setScrollerProperties(propertiesOne);
|
||||
}
|
||||
|
||||
bool BluetoothApplet::poweredInitState()
|
||||
|
Loading…
x
Reference in New Issue
Block a user