1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

close debug info about bodymouselocker

This commit is contained in:
tianduanrui 2019-09-24 22:10:15 +08:00
parent 5b49035acf
commit 05c4e884dc
3 changed files with 4 additions and 4 deletions

View File

@ -131,7 +131,7 @@ bool QQtBodyMouseLocker::eventFilter ( QObject* watched, QEvent* event )
if ( d->getTargetRect ( target ) != d->getRect() )
addWindow ( target );
}
//pline() << rectMustIn << rectMustNotIn << d->getRect() << cursorPos << e->globalPos();
//pline() << rectMustIn << rectMustNotIn << d->getTargetRect ( target ) << d->getRect() << ( d->getTargetRect ( target ) != d->getRect() ) << cursorPos << e->globalPos();
event->accept();
return false;
}

View File

@ -27,7 +27,7 @@ void QQtBodyMouseLockerPrivate::addRect ( const QRect globalRect )
mainWinRect.top = ( LONG ) globalRect.top();
mainWinRect.bottom = ( LONG ) globalRect.bottom();
pline() << globalRect;
//pline() << globalRect;
if ( globalRect == QRect ( 0, 0, 0, 0 ) )
{
ClipCursor ( NULL );
@ -46,7 +46,7 @@ QRect QQtBodyMouseLockerPrivate::getRect()
qr0 = QRect ( QPoint ( r0.left, r0.top ), QPoint ( r0.right, r0.bottom ) );
}
bool ret = GetClipCursor ( &r0 );
pline() << qr0 << ret;
//pline() << qr0 << ret;
return qr0;
}

View File

@ -99,8 +99,8 @@ bool MainWindow::eventFilter ( QObject* watched, QEvent* event )
helper->removeWindow ( ui->widget ); //helper->addWindow ( ui->widget );
else
helper->addWindow ( ui->widget );
event->accept();
pline() << qr0 << qr1 << mousePos;
event->accept();
return true;
}