Refactoring the new dialog manager module and fixed keyboard problem in Linux touch panel.
This commit is contained in:
@@ -127,6 +127,16 @@ void HandWriteWidget::mousePressEvent(QMouseEvent* aEvent)
|
||||
void HandWriteWidget::mouseMoveEvent(QMouseEvent* aEvent)
|
||||
{
|
||||
QPoint pos = aEvent->pos();
|
||||
if (pos.x() > HANDWRITEAREA_SIZE.width() || pos.y() > HANDWRITEAREA_SIZE.height())
|
||||
{
|
||||
if (!mVectorPoints.empty())
|
||||
{
|
||||
mVectorPointsList.push_back(mVectorPoints);
|
||||
mVectorPoints.clear();
|
||||
mTimer->start();
|
||||
}
|
||||
return QWidget::mouseMoveEvent(aEvent);;
|
||||
}
|
||||
mPainter->drawLine(mLastPosition, pos);
|
||||
mVectorPoints.push_back(pos);
|
||||
mLastPosition = pos;
|
||||
|
||||
Reference in New Issue
Block a user