|
|
|
@ -384,14 +384,14 @@ bool KOAgenda::eventFilter ( TQObject *object, TQEvent *event )
|
|
|
|
|
case TQEvent::MouseButtonDblClick:
|
|
|
|
|
case TQEvent::MouseButtonRelease:
|
|
|
|
|
case TQEvent::MouseMove:
|
|
|
|
|
return eventFilter_mouse( object, TQT_TQMOUSEEVENT( event ) );
|
|
|
|
|
return eventFilter_mouse( object, static_cast<TQMouseEvent*>( event ) );
|
|
|
|
|
#ifndef TQT_NO_WHEELEVENT
|
|
|
|
|
case TQEvent::Wheel:
|
|
|
|
|
return eventFilter_wheel( object, TQT_TQWHEELEVENT( event ) );
|
|
|
|
|
return eventFilter_wheel( object, static_cast<TQWheelEvent*>( event ) );
|
|
|
|
|
#endif
|
|
|
|
|
case TQEvent::KeyPress:
|
|
|
|
|
case TQEvent::KeyRelease:
|
|
|
|
|
return eventFilter_key( object, TQT_TQKEYEVENT( event ) );
|
|
|
|
|
return eventFilter_key( object, static_cast<TQKeyEvent*>( event ) );
|
|
|
|
|
|
|
|
|
|
case ( TQEvent::Leave ):
|
|
|
|
|
if ( !mActionItem )
|
|
|
|
@ -526,10 +526,10 @@ bool KOAgenda::eventFilter_key( TQObject *, TQKeyEvent *ke )
|
|
|
|
|
case Key_Alt:
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
mTypeAheadEvents.append( TQT_TQEVENT( new TQKeyEvent( ke->type(), ke->key(),
|
|
|
|
|
mTypeAheadEvents.append( new TQKeyEvent( ke->type(), ke->key(),
|
|
|
|
|
ke->ascii(), ke->state(),
|
|
|
|
|
ke->text(), ke->isAutoRepeat(),
|
|
|
|
|
ke->count() ) ) );
|
|
|
|
|
ke->count() ) );
|
|
|
|
|
if ( !mTypeAhead ) {
|
|
|
|
|
mTypeAhead = true;
|
|
|
|
|
emitNewEventForSelection();
|
|
|
|
@ -615,7 +615,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
|
|
|
|
|
mClickedItem->incidence(),
|
|
|
|
|
mClickedItem->itemDate() );
|
|
|
|
|
} else {
|
|
|
|
|
return TQScrollView::eventFilter( TQT_TQOBJECT(object), TQT_TQEVENT(me) ); // pass through for use by multiagenda
|
|
|
|
|
return TQScrollView::eventFilter( object, me ); // pass through for use by multiagenda
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
KOAgendaItem* item = dynamic_cast<KOAgendaItem *>(object);
|
|
|
|
@ -635,7 +635,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
|
|
|
|
|
// null.
|
|
|
|
|
selectItem( item );
|
|
|
|
|
} else {
|
|
|
|
|
return TQScrollView::eventFilter( TQT_TQOBJECT(object), TQT_TQEVENT(me) ); // pass through for use by multiagenda
|
|
|
|
|
return TQScrollView::eventFilter( object, me ); // pass through for use by multiagenda
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
@ -662,7 +662,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
|
|
|
|
|
startSelectAction(viewportPos);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return TQScrollView::eventFilter( TQT_TQOBJECT(object), TQT_TQEVENT(me) ); // pass through for use by multiagenda
|
|
|
|
|
return TQScrollView::eventFilter( object, me ); // pass through for use by multiagenda
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|