|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
#include "ZxBaseUtil.h"
|
|
|
|
|
#include "zxLogInstance.h"
|
|
|
|
|
#include <QAction>
|
|
|
|
|
#include <QLineF>
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <QtCore/qnumeric.h>
|
|
|
|
|
@ -68,6 +69,16 @@ nmGuiPlotCmdHelper::nmGuiPlotCmdHelper(iGuiPlot* p)
|
|
|
|
|
nmGuiPlotCmdHelper::~nmGuiPlotCmdHelper() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void nmGuiPlotCmdHelper::fuzzyCheckStates(QAction* pAction, bool& bRepeatedHit)
|
|
|
|
|
{
|
|
|
|
|
iGuiPlotCmdHelper::fuzzyCheckStates(pAction, bRepeatedHit);
|
|
|
|
|
if (pAction != nullptr && pAction->objectName() == QLatin1String("Select")) {
|
|
|
|
|
// 测量等工具启动后,选择按钮可能仍处于选中状态。
|
|
|
|
|
bRepeatedHit = false;
|
|
|
|
|
pAction->setChecked(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool nmGuiPlotCmdHelper::runAction(QString sAction) {
|
|
|
|
|
Q_ASSERT (NULL != m_pGuiPlot);
|
|
|
|
|
ZxPlot* pPlot = m_pGuiPlot->m_pPlot;
|
|
|
|
|
|