-rw-r--r-- | korganizer/koagenda.cpp | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 148d914..18c506e 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -1362,8 +1362,11 @@ void KOAgenda::placeSubCells(KOAgendaItem *placeItem) void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch) { if ( globalFlagBlockAgenda ) return; + if ( ! mAllDayMode ) { + // currently not working for + //qDebug("KOAgenda::drawContents "); if ( mCurPixWid != contentsWidth() || mCurPixHei != contentsHeight() ) ;//drawContentsToPainter(); @@ -1398,16 +1401,11 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch) contentsToViewport ( selectionX, mSelectionYTop, vx,vy); bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP); } } - //qDebug("btbl "); p->begin( pd ); - //qDebug("end "); -#if 0 + } else { - if ( globalFlagBlockAgenda ) - return; - //qDebug("KOAgenda::drawContents "); if ( mCurPixWid != contentsWidth() || mCurPixHei != contentsHeight() ) ;//drawContentsToPainter(); QPaintDevice* pd = p->device(); @@ -1428,19 +1426,11 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch) contentsToViewport ( selectionX, mSelectionYTop, vx,vy); bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP); } } - //qDebug("btbl "); p->begin( pd ); - //qDebug("end "); - - - - - - + } -#endif } void KOAgenda::finishUpdate() { @@ -1966,9 +1956,9 @@ void KOAgenda::finishResize ( ) Overridden from QScrollView to provide proper resizing of KOAgendaItems. */ void KOAgenda::resizeEvent ( QResizeEvent *ev ) { - + mSelectionHeight = 0; mResizeTimer.start( 150 , true ); computeSizes(); return; |