author | zautrix <zautrix> | 2005-02-19 20:56:28 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-19 20:56:28 (UTC) |
commit | 1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5 (patch) (side-by-side diff) | |
tree | 6a1044c3412c0bc7e07fcd89ba489a4326677f8d | |
parent | fc2d01e5acc939719f01b9dbe5696d47162514b1 (diff) | |
download | kdepimpi-1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5.zip kdepimpi-1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5.tar.gz kdepimpi-1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5.tar.bz2 |
nochn fix
-rw-r--r-- | korganizer/komonthview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index ddac6e4..3aaa50a 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -219,17 +219,18 @@ void MonthViewItem::paint(QPainter *p) sel ? QColorGroup::Highlight : QColorGroup::Background ) ); p->eraseRect( 0, 0, listBox()->maxItemWidth(), height( listBox() ) ); } int x = 1; //int y = 3;//(height() - mRecurPixmap.height()) /2; int size = PIXMAP_SIZE; if ( QApplication::desktop()->width() < 300 ) size = 3; - int y = (height( listBox () ) - size -1 ) /2; + int heihei = height( listBox () ); + int y = (heihei - size -1 ) /2; if ( KOPrefs::instance()->mMonthShowIcons ) { if ( mInfo ) { p->fillRect ( x, y,size,size, Qt::darkGreen ); x += size + 1; } if ( mRecur ) { p->fillRect ( x, y,size,size, Qt::blue ); @@ -283,17 +284,17 @@ void MonthViewItem::paint(QPainter *p) yPos = fm.ascent() + fm.leading()/2; else yPos = pmheight/2 - fm.height()/2 + fm.ascent(); p->setPen( palette().color( QPalette::Normal, sel ? \ QColorGroup::HighlightedText : QColorGroup::Foreground ) ); p->drawText( x, yPos, text() ); if ( mIncidence->cancelled() ) { int wid = fm.width( text() ); - p->drawLine( x, yPos- fm.height()/2+3,x+wid, yPos- fm.height()/2 +3); + p->drawLine( x, heihei/2 ,x+wid, heihei/2 ); } } int MonthViewItem::height(const QListBox *lb) const { if ( lb ) return lb->fontMetrics().lineSpacing()+1; |