[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdepim/korganizer
From: Till Adam <adam () kde ! org>
Date: 2004-10-15 22:39:53
Message-ID: 20041015223953.BDF2E16D18 () office ! kde ! org
[Download RAW message or body]
CVS commit by tilladam:
Backport as per emeteo's request.
M +14 -9 koagenda.cpp 1.133.2.5
--- kdepim/korganizer/koagenda.cpp #1.133.2.4:1.133.2.5
@@ -1532,11 +1532,15 @@ void KOAgenda::insertMultiItem (Event *e
int count = 0;
KOAgendaItem *current = 0;
+ int visibleCount = mSelectedDates.first().daysTo(mSelectedDates.last());
QPtrList<KOAgendaItem> multiItems;
for ( cellX = XBegin; cellX <= XEnd; ++cellX ) {
+ ++count;
+ //Only add the items that are visible.
+ if( cellX >=0 && cellX <= visibleCount ) {
if ( cellX == XBegin ) cellYTop = YTop;
else cellYTop = 0;
if ( cellX == XEnd ) cellYBottom = YBottom;
else cellYBottom = rows() - 1;
- newtext = QString("(%1/%2): ").arg( ++count ).arg( width );
+ newtext = QString("(%1/%2): ").arg( count ).arg( width );
newtext.append( event->summary() );
current = insertItem( event, qd, cellX, cellYTop, cellYBottom );
@@ -1544,4 +1548,5 @@ void KOAgenda::insertMultiItem (Event *e
multiItems.append( current );
}
+ }
KOAgendaItem *next = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic