summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index f287216..957ac52 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -127,18 +127,21 @@ void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch)
QString suffix;
QString fullTime;
int tW = fm.width("24:00i");
int timeHeight = fm.height();
- if ( timeHeight > mCellHeight )
- timeHeight = mCellHeight-1;
+ timeHeight -= (timeHeight/4-2);
int borderWidth = 5;
QFont nFont = p->font();
QFont sFont = nFont;
sFont.setPointSize( sFont.pointSize()/2+2 );
if (!KGlobal::locale()->use12Clock())
suffix = "00";
QFontMetrics fmS( sFont );
int sHei = fmS.height();
+ if ( timeHeight > mCellHeight ) {
+ timeHeight = mCellHeight-1;
+ sHei -= 2;
+ }
while (y < cy + ch) {
p->drawLine(cx,y,cx+tW,y);
hour.setNum(cell);