|
|
@ -274,7 +274,7 @@ void KOAgenda::init()
|
|
|
|
mClickedItem = 0;
|
|
|
|
mClickedItem = 0;
|
|
|
|
|
|
|
|
|
|
|
|
mActionItem = 0;
|
|
|
|
mActionItem = 0;
|
|
|
|
mResPair = tqMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mResPair = qMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mActionType = NOP;
|
|
|
|
mActionType = NOP;
|
|
|
|
mItemMoved = false;
|
|
|
|
mItemMoved = false;
|
|
|
|
|
|
|
|
|
|
|
@ -623,7 +623,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
|
|
|
|
Incidence *incidence = item->incidence();
|
|
|
|
Incidence *incidence = item->incidence();
|
|
|
|
if ( incidence->isReadOnly() ) {
|
|
|
|
if ( incidence->isReadOnly() ) {
|
|
|
|
mActionItem = 0;
|
|
|
|
mActionItem = 0;
|
|
|
|
mResPair = tqMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mResPair = qMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
mActionItem = item;
|
|
|
|
mActionItem = item;
|
|
|
|
mResPair = CalHelper::incSubResourceCalendar( mCalendar, incidence );
|
|
|
|
mResPair = CalHelper::incSubResourceCalendar( mCalendar, incidence );
|
|
|
@ -657,7 +657,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
|
|
|
|
if ( !ptInSelection( gpos ) ) {
|
|
|
|
if ( !ptInSelection( gpos ) ) {
|
|
|
|
selectItem(0);
|
|
|
|
selectItem(0);
|
|
|
|
mActionItem = 0;
|
|
|
|
mActionItem = 0;
|
|
|
|
mResPair = tqMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mResPair = qMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
setCursor(arrowCursor);
|
|
|
|
setCursor(arrowCursor);
|
|
|
|
startSelectAction(viewportPos);
|
|
|
|
startSelectAction(viewportPos);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -918,7 +918,7 @@ void KOAgenda::performItemAction(const TQPoint& viewportPos)
|
|
|
|
emit startDragSignal( mActionItem->incidence() );
|
|
|
|
emit startDragSignal( mActionItem->incidence() );
|
|
|
|
setCursor( arrowCursor );
|
|
|
|
setCursor( arrowCursor );
|
|
|
|
mActionItem = 0;
|
|
|
|
mActionItem = 0;
|
|
|
|
mResPair = tqMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mResPair = qMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mActionType = NOP;
|
|
|
|
mActionType = NOP;
|
|
|
|
mItemMoved = false;
|
|
|
|
mItemMoved = false;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -952,7 +952,7 @@ void KOAgenda::performItemAction(const TQPoint& viewportPos)
|
|
|
|
placeSubCells( mActionItem );
|
|
|
|
placeSubCells( mActionItem );
|
|
|
|
setCursor( arrowCursor );
|
|
|
|
setCursor( arrowCursor );
|
|
|
|
mActionItem = 0;
|
|
|
|
mActionItem = 0;
|
|
|
|
mResPair = tqMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mResPair = qMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mActionType = NOP;
|
|
|
|
mActionType = NOP;
|
|
|
|
mItemMoved = false;
|
|
|
|
mItemMoved = false;
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -1192,7 +1192,7 @@ void KOAgenda::endItemAction()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mActionItem = 0;
|
|
|
|
mActionItem = 0;
|
|
|
|
mResPair = tqMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mResPair = qMakePair( static_cast<ResourceCalendar *>( 0 ), TQString() );
|
|
|
|
mItemMoved = false;
|
|
|
|
mItemMoved = false;
|
|
|
|
|
|
|
|
|
|
|
|
if ( multiModify ) {
|
|
|
|
if ( multiModify ) {
|
|
|
|