summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-07-04 06:42:00 (UTC)
committer zautrix <zautrix>2005-07-04 06:42:00 (UTC)
commit068a89b64d8ef4cb49702ed53ab4e415a0b90a80 (patch) (side-by-side diff)
tree9c2f4b77372cfbb2c1dab2717de027d8500a905a
parentad66f0fe56bb88104fb0065ccb599ab0edd35cf4 (diff)
downloadkdepimpi-068a89b64d8ef4cb49702ed53ab4e415a0b90a80.zip
kdepimpi-068a89b64d8ef4cb49702ed53ab4e415a0b90a80.tar.gz
kdepimpi-068a89b64d8ef4cb49702ed53ab4e415a0b90a80.tar.bz2
fixx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagenda.cpp2
-rw-r--r--korganizer/koagendaview.cpp31
2 files changed, 2 insertions, 31 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index f860f7d..94c3b22 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -1134,9 +1134,9 @@ void KOAgenda::placeSubCells(KOAgendaItem *placeItem)
{
QPtrList<KOAgendaItem> conflictItems;
int maxSubCells = 0;
- QIntDict<KOAgendaItem> subCellDict(5);
+ QIntDict<KOAgendaItem> subCellDict(7);
KOAgendaItem *item;
for ( item=mItems.first(); item != 0; item=mItems.next() ) {
if (item != placeItem) {
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index a42227c..5a63b35 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -1120,14 +1120,8 @@ void KOAgendaView::fillAgenda()
mEventIndicatorTop->changeColumns(mSelectedDates.count());
mEventIndicatorBottom->changeColumns(mSelectedDates.count());
setHolidayMasks();
- //mAgenda->hideUnused();
- //mAllDayAgenda->hideUnused();
-
- // mAgenda->blockNextRepaint( false );
- // mAgenda->viewport()->repaint();
- // mAgenda->blockNextRepaint( true );
mMinY.resize(mSelectedDates.count());
mMaxY.resize(mSelectedDates.count());
QPtrList<Event> dayEvents;
@@ -1146,9 +1140,9 @@ void KOAgendaView::fillAgenda()
QDate currentDate = *dit;
// kdDebug() << "KOAgendaView::fillAgenda(): " << currentDate.toString()
// << endl;
- dayEvents = calendar()->events(currentDate,true);
+ dayEvents = calendar()->events(currentDate,false);
// Default values, which can never be reached
mMinY[curCol] = mAgenda->timeToY(QTime(23,59)) + 1;
mMaxY[curCol] = mAgenda->timeToY(QTime(0,0)) - 1;
@@ -1288,48 +1282,27 @@ void KOAgendaView::fillAgenda()
}
mAgenda->hideUnused();
mAllDayAgenda->hideUnused();
mAgenda->checkScrollBoundaries();
-
deleteSelectedDateTime();
-
createDayLabels();
emit incidenceSelected( 0 );
if ( globalFlagBlockAgenda == 2 ) {
if ( KOPrefs::instance()->mSetTimeToDayStartAt )
setStartHour( KOPrefs::instance()->mDayBegins );
else if ( KOPrefs::instance()->mCenterOnCurrentTime )
setStartHour( QTime::currentTime ().hour() );
- // qApp->processEvents();
}
qApp->processEvents();
- //qDebug("qApp->processEvents(); END ");
globalFlagBlockAgenda = 0;
-
- // mAgenda->hideUnused();
- //mAllDayAgenda->hideUnused();
mAllDayAgenda->drawContentsToPainter();
mAgenda->drawContentsToPainter();
repaintAgenda();
onlyOne = false;
- // mAgenda->finishUpdate();
- //mAllDayAgenda->finishUpdate();
-
- // repaintAgenda();
- //qApp->processEvents();
- // globalFlagBlockAgenda = 0;
}
void KOAgendaView::repaintAgenda()
{
- // mAllDayAgenda->drawContentsToPainter();
-// mAllDayAgenda->viewport()->repaint( false );
-// mAgenda->drawContentsToPainter();
-// mAgenda->viewport()->repaint( false );
-// qApp->processEvents();
-
- //qDebug("KOAgendaView::repaintAgenda() ");
- //qApp->processEvents();
mAgenda->viewport()->repaint( false );
mAllDayAgenda->viewport()->repaint( false );
mAgenda->finishUpdate();
mAllDayAgenda->finishUpdate();
@@ -1337,15 +1310,13 @@ void KOAgendaView::repaintAgenda()
void KOAgendaView::clearView()
{
- // kdDebug() << "ClearView" << endl;
mAllDayAgenda->clear();
mAgenda->clear();
}
void KOAgendaView::clearList()
{
- // kdDebug() << "ClearView" << endl;
clearView();
mAllDayAgenda->hideUnused();
mAgenda->hideUnused();
}