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:
parent
5b49035acf
commit
05c4e884dc
@ -131,7 +131,7 @@ bool QQtBodyMouseLocker::eventFilter ( QObject* watched, QEvent* event )
|
|||||||
if ( d->getTargetRect ( target ) != d->getRect() )
|
if ( d->getTargetRect ( target ) != d->getRect() )
|
||||||
addWindow ( target );
|
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();
|
event->accept();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ void QQtBodyMouseLockerPrivate::addRect ( const QRect globalRect )
|
|||||||
mainWinRect.top = ( LONG ) globalRect.top();
|
mainWinRect.top = ( LONG ) globalRect.top();
|
||||||
mainWinRect.bottom = ( LONG ) globalRect.bottom();
|
mainWinRect.bottom = ( LONG ) globalRect.bottom();
|
||||||
|
|
||||||
pline() << globalRect;
|
//pline() << globalRect;
|
||||||
if ( globalRect == QRect ( 0, 0, 0, 0 ) )
|
if ( globalRect == QRect ( 0, 0, 0, 0 ) )
|
||||||
{
|
{
|
||||||
ClipCursor ( NULL );
|
ClipCursor ( NULL );
|
||||||
@ -46,7 +46,7 @@ QRect QQtBodyMouseLockerPrivate::getRect()
|
|||||||
qr0 = QRect ( QPoint ( r0.left, r0.top ), QPoint ( r0.right, r0.bottom ) );
|
qr0 = QRect ( QPoint ( r0.left, r0.top ), QPoint ( r0.right, r0.bottom ) );
|
||||||
}
|
}
|
||||||
bool ret = GetClipCursor ( &r0 );
|
bool ret = GetClipCursor ( &r0 );
|
||||||
pline() << qr0 << ret;
|
//pline() << qr0 << ret;
|
||||||
return qr0;
|
return qr0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,8 +99,8 @@ bool MainWindow::eventFilter ( QObject* watched, QEvent* event )
|
|||||||
helper->removeWindow ( ui->widget ); //helper->addWindow ( ui->widget );
|
helper->removeWindow ( ui->widget ); //helper->addWindow ( ui->widget );
|
||||||
else
|
else
|
||||||
helper->addWindow ( ui->widget );
|
helper->addWindow ( ui->widget );
|
||||||
event->accept();
|
|
||||||
pline() << qr0 << qr1 << mousePos;
|
pline() << qr0 << qr1 << mousePos;
|
||||||
|
event->accept();
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user