|
|
|
@ -47,7 +47,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
|
|
|
|
|
|
|
|
|
|
switch (_event->type()) {
|
|
|
|
|
case TQEvent::MouseMove: {
|
|
|
|
|
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
|
|
|
|
|
TQMouseEvent* event=static_cast<TQMouseEvent*>(_event);
|
|
|
|
|
if (widget->rect().contains(event->pos()) || (event->stateAfter() & TQt::LeftButton)) {
|
|
|
|
|
show();
|
|
|
|
|
move(event->globalPos().x() + 15, event->globalPos().y() + 15);
|
|
|
|
@ -58,7 +58,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case TQEvent::MouseButtonRelease: {
|
|
|
|
|
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
|
|
|
|
|
TQMouseEvent* event=static_cast<TQMouseEvent*>(_event);
|
|
|
|
|
if ( !widget->rect().contains(event->pos()) ) {
|
|
|
|
|
hide();
|
|
|
|
|
}
|
|
|
|
|