Refactoring the new dialog manager module and fixed keyboard problem in Linux touch panel.

This commit is contained in:
sunwen
2022-08-10 15:28:59 +08:00
parent 9b96af094b
commit 30df175f22
28 changed files with 485 additions and 303 deletions

View File

@@ -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;