|
|
@ -299,7 +299,7 @@ bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
|
|
|
|
case TQEvent::MouseButtonDblClick:
|
|
|
|
case TQEvent::MouseButtonDblClick:
|
|
|
|
case TQEvent::MouseButtonPress: {
|
|
|
|
case TQEvent::MouseButtonPress: {
|
|
|
|
TQMouseEvent *mouseEvent = (TQMouseEvent*)event;
|
|
|
|
TQMouseEvent *mouseEvent = (TQMouseEvent*)event;
|
|
|
|
if ( !TQT_TQRECT_OBJECT(mPopup->rect()).contains( mouseEvent->pos() ) ) {
|
|
|
|
if ( !mPopup->rect().contains( mouseEvent->pos() ) ) {
|
|
|
|
TQPoint globalPos = mPopup->mapToGlobal( mouseEvent->pos() );
|
|
|
|
TQPoint globalPos = mPopup->mapToGlobal( mouseEvent->pos() );
|
|
|
|
if ( TQApplication::widgetAt( globalPos, true ) == this ) {
|
|
|
|
if ( TQApplication::widgetAt( globalPos, true ) == this ) {
|
|
|
|
// The date picker is being closed by a click on the
|
|
|
|
// The date picker is being closed by a click on the
|
|
|
|