author | zautrix <zautrix> | 2005-03-26 13:13:04 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-26 13:13:04 (UTC) |
commit | 93d1be2c6eead07300e7f90f3b417fcef0f109d3 (patch) (side-by-side diff) | |
tree | cdcac27cfa1e02c6fa388c252287ed9818b95847 /korganizer/koagendaview.cpp | |
parent | bc8929ccca1ad8cd04f61366c78254803d9c1565 (diff) | |
download | kdepimpi-93d1be2c6eead07300e7f90f3b417fcef0f109d3.zip kdepimpi-93d1be2c6eead07300e7f90f3b417fcef0f109d3.tar.gz kdepimpi-93d1be2c6eead07300e7f90f3b417fcef0f109d3.tar.bz2 |
icons added
-rw-r--r-- | korganizer/koagendaview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b9c7dec..8001c8f 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -122,32 +122,34 @@ void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch) int cell = ((int)(cy/mCellHeight)); int y = cell * mCellHeight; QFontMetrics fm = fontMetrics(); QString hour; QString suffix; QString fullTime; int tW = fm.width("24:00i"); int timeHeight = fm.height(); timeHeight -= (timeHeight/4-2); int borderWidth = 2; QFont nFont = p->font(); QFont sFont = nFont; sFont.setPointSize( sFont.pointSize()/2+2 ); if (!KGlobal::locale()->use12Clock()) suffix = "00"; + else + borderWidth = 0; 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); // handle 24h and am/pm time formats if (KGlobal::locale()->use12Clock()) { if (cell > 11) suffix = "pm"; else suffix = "am"; |