summaryrefslogtreecommitdiffabout
path: root/korganizer/koagenda.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koagenda.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagenda.cpp22
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
@@ -1363,6 +1363,9 @@ 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();
@@ -1399,14 +1402,9 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
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();
@@ -1429,17 +1427,9 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch)
bitBlt ( pd, vx+1, vy, &mHighlightPixmap, 0, mSelectionYTop, mGridSpacingX-1, mSelectionHeight ,CopyROP);
}
}
- //qDebug("btbl ");
p->begin( pd );
- //qDebug("end ");
-
-
-
-
-
-
+ }
-#endif
}
void KOAgenda::finishUpdate()
@@ -1967,7 +1957,7 @@ void KOAgenda::finishResize ( )
*/
void KOAgenda::resizeEvent ( QResizeEvent *ev )
{
-
+ mSelectionHeight = 0;
mResizeTimer.start( 150 , true );
computeSizes();
return;