From b76ad1e7e329051a47e28c9d132ce3fcd0b25c5c Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 31 Mar 2005 23:55:51 +0000 Subject: fixes --- (limited to 'korganizer/koagendaview.cpp') diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b9909d6..2996acb 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -488,8 +488,8 @@ KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)), SLOT(setContentsPos(int))); - connect(mAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); - connect(mAllDayAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); + connect(mAgenda,SIGNAL(showDateView( int, int)),SLOT(slotShowDateView( int, int ))); + connect(mAllDayAgenda,SIGNAL(showDateView( int, int )), SLOT(slotShowDateView( int, int ) )); // Create/Show/Edit/Delete Event connect(mAgenda,SIGNAL(newEventSignal(int,int)), @@ -1310,6 +1310,17 @@ void KOAgendaView::printPreview(CalPrinter *calPrinter, const QDate &fd, // // emit updateTodoViews(); // } +void KOAgendaView::slotShowDateView( int mode , int d ) +{ + if ( d >= mSelectedDates.count() ) { + qDebug("KOAgendaView::slotShowDateView datecounterror %d d ", d, mSelectedDates.count() ); + + } else { + QDate day = mSelectedDates[d]; + emit showDateView(mode , day ); + } + +} void KOAgendaView::newEvent(int gx, int gy) { if (!mSelectedDates.count()) return; -- cgit v0.9.0.2