author | zautrix <zautrix> | 2005-04-04 18:43:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-04 18:43:08 (UTC) |
commit | 8e7f4812c4ad239b6a17cce8aa84c00274ced4df (patch) (side-by-side diff) | |
tree | 4245f8dbe39ce59c1199a9a97dc68ec74825271b /korganizer | |
parent | ff205358654ed8741f0008eabd64a0e8b0476b61 (diff) | |
download | kdepimpi-8e7f4812c4ad239b6a17cce8aa84c00274ced4df.zip kdepimpi-8e7f4812c4ad239b6a17cce8aa84c00274ced4df.tar.gz kdepimpi-8e7f4812c4ad239b6a17cce8aa84c00274ced4df.tar.bz2 |
fix
-rw-r--r-- | korganizer/koagendaitem.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index b30ad75..23afe7a 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp @@ -400,48 +400,52 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint ) } } int colsum = mBackgroundColor.red() + mBackgroundColor.green() + mBackgroundColor.blue(); if ( colsum < 250 ) paint->setPen ( white); if ( x < 0 ) { w = w+x-3; x = 3; if ( w > parentWidget()->width() ){ w = parentWidget()->width() - 6; #ifndef DESKTOP_VERSION align = ( AlignHCenter|WordBreak|AlignTop); #else align = ( AlignHCenter|BreakAnywhere|WordBreak|AlignTop); #endif } } QRect dr; if ( w + x > parentWidget()->width() ) w = parentWidget()->width()-x; paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); //qDebug("%d %d %d %d ", x, yy, w, h ); if ( mIncidence->cancelled() ){ + + + small = ( height() < 20 ); + if ( ! small ) { QFontMetrics fm ( paint->font() ); paint->drawLine(dr.left(), yy+fm.height()/2, dr.right()-2, yy+fm.height()/2); } } pa.end(); } void KOAgendaItem::resizePixmap( int w , int h ) { paintPix()->resize( w, h ); paintPixSel()->resize( w, h ); } QPixmap * KOAgendaItem::paintPix() { static QPixmap* mPaintPix = 0; if ( ! mPaintPix ) mPaintPix = new QPixmap(1,1); return mPaintPix ; } QPixmap * KOAgendaItem::paintPixAllday() { |