|
|
@ -313,7 +313,7 @@ void GDDCdlg::mouseMoveEvent(QMouseEvent *event) {
|
|
|
|
qDebug() << "x:" << diff.x() <<"y:" <<diff.y();
|
|
|
|
qDebug() << "x:" << diff.x() <<"y:" <<diff.y();
|
|
|
|
m_GDDCCmdDlg->setMoveParm(diff);
|
|
|
|
m_GDDCCmdDlg->setMoveParm(diff);
|
|
|
|
|
|
|
|
|
|
|
|
if(diff.x() > 5 || diff.y() >5)//像素点超过5ptx才算移动,否则为跟踪
|
|
|
|
if(qAbs(diff.x()) > 5 || qAbs(diff.y()) >5)//像素点超过5ptx才算移动,否则为跟踪
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_moveFlag = true;
|
|
|
|
_moveFlag = true;
|
|
|
|
firstLocation->move((_dragStartPositon - QPoint(firstLocation->width()/2, firstLocation->height()/2)).toPoint());
|
|
|
|
firstLocation->move((_dragStartPositon - QPoint(firstLocation->width()/2, firstLocation->height()/2)).toPoint());
|
|
|
|