From 4d93404e3453229e58c2ff9305beae131c9f1af9 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 25 Mar 2005 19:49:52 +0000 Subject: fix --- (limited to 'korganizer/koagendaview.cpp') diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index f287216..957ac52 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -128,8 +128,7 @@ void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch) 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; @@ -138,6 +137,10 @@ void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch) 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); -- cgit v0.9.0.2