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