fix: 解决bug84995

Description: 接入一指滑动事件

Log: 与触摸屏有关
Bug: https://pms.uniontech.com/zentao/bug-view-84995.html
Change-Id: I62a9480cb25f5101c55fc843de4b7cfcdd1153fc
This commit is contained in:
liuminghang 2021-06-24 16:54:09 +08:00
parent 17fb3bf430
commit a9c3013e9f

View File

@ -1,10 +1,13 @@
#include "resulttextview.h"
#include <QDebug>
#include <QScroller>
ResultTextView::ResultTextView(QWidget *parent)
: m_Menu(nullptr), m_actCopy(nullptr), m_actCut(nullptr), m_actSelectAll(nullptr)
{
Q_UNUSED(parent)
//鼠标滑动事件接入
QScroller::grabGesture(this->viewport(), QScroller::ScrollerGestureType::TouchGesture);
m_Menu = new QMenu(this);
m_actCopy = new QAction(this);
m_actCopy->setText(tr("Copy"));