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.
AppFlow/GUIDialog/GUIMeshDialog/CompBaseBoundaryLineEdit.cpp

32 lines
619 B
C++

#include "CompBaseBoundaryLineEdit.h"
namespace GUI {
CompBaseBoundaryLineEdit::CompBaseBoundaryLineEdit(QWidget* parent):
QLineEdit(parent)
{
//设置鼠标跟踪
setMouseTracking(true);
}
CompBaseBoundaryLineEdit::~CompBaseBoundaryLineEdit()
{
}
void CompBaseBoundaryLineEdit::setPos(int pos)
{
_pos = pos;
}
int CompBaseBoundaryLineEdit::getPos()
{
return _pos;
}
void CompBaseBoundaryLineEdit::mouseMoveEvent(QMouseEvent* event)
{
emit sigMouseMove();
QLineEdit::mouseMoveEvent(event);
}
}