You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
416 B
C++
29 lines
416 B
C++
#pragma once
|
|
|
|
#include <ZxSimpleTool.h>
|
|
|
|
/// 区域缩放和滚轮缩放
|
|
class I_PLOTBASE_EXPORT ZxDragScrollTool : public ZxSimpleTool
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
ZxDragScrollTool();
|
|
|
|
protected:
|
|
|
|
virtual bool onLeftDown(const QPointF& pt);
|
|
virtual bool onLeftUp(const QPointF& pt);
|
|
virtual bool onMouseMove(const QPointF& pt);
|
|
|
|
protected:
|
|
|
|
QPointF m_origScroll;
|
|
QPointF m_ptDownView;
|
|
};
|
|
|
|
|
|
|
|
|