fix: 解决bug84995
Description: 接入一指滑动事件 Log: 与触摸屏有关 Bug: https://pms.uniontech.com/zentao/bug-view-84995.html Change-Id: I62a9480cb25f5101c55fc843de4b7cfcdd1153fc
This commit is contained in:
parent
17fb3bf430
commit
a9c3013e9f
|
@ -1,10 +1,13 @@
|
||||||
#include "resulttextview.h"
|
#include "resulttextview.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QScroller>
|
||||||
|
|
||||||
ResultTextView::ResultTextView(QWidget *parent)
|
ResultTextView::ResultTextView(QWidget *parent)
|
||||||
: m_Menu(nullptr), m_actCopy(nullptr), m_actCut(nullptr), m_actSelectAll(nullptr)
|
: m_Menu(nullptr), m_actCopy(nullptr), m_actCut(nullptr), m_actSelectAll(nullptr)
|
||||||
{
|
{
|
||||||
Q_UNUSED(parent)
|
Q_UNUSED(parent)
|
||||||
|
//鼠标滑动事件接入
|
||||||
|
QScroller::grabGesture(this->viewport(), QScroller::ScrollerGestureType::TouchGesture);
|
||||||
m_Menu = new QMenu(this);
|
m_Menu = new QMenu(this);
|
||||||
m_actCopy = new QAction(this);
|
m_actCopy = new QAction(this);
|
||||||
m_actCopy->setText(tr("Copy"));
|
m_actCopy->setText(tr("Copy"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user