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.
33 lines
408 B
C++
33 lines
408 B
C++
#pragma once
|
|
|
|
#include <ZxSimpleTool.h>
|
|
|
|
// 右键菜单工具
|
|
class I_PLOTBASE_EXPORT ZxContextMenuTool : public ZxSimpleTool
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
ZxContextMenuTool();
|
|
~ZxContextMenuTool();
|
|
|
|
protected:
|
|
|
|
bool onRightDown(const QPointF& pt);
|
|
bool onRightUp(const QPointF& pt);
|
|
|
|
private slots:
|
|
|
|
void customEvent(QEvent *);
|
|
|
|
private:
|
|
|
|
QPoint m_ptPopup;
|
|
QMenu* m_pMenu;
|
|
};
|
|
|
|
|
|
|
|
|