summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaitem.cpp
authorzautrix <zautrix>2005-02-19 16:54:24 (UTC)
committer zautrix <zautrix>2005-02-19 16:54:24 (UTC)
commit11b5b0eb24cfb943df106f7ee97646955bec0fd3 (patch) (unidiff)
treeca62b4515977e0538fff0b1ee15a25bd8aed808e /korganizer/koagendaitem.cpp
parente15d171a0630656b6e4a66d6cab6a7d64a37434b (diff)
downloadkdepimpi-11b5b0eb24cfb943df106f7ee97646955bec0fd3.zip
kdepimpi-11b5b0eb24cfb943df106f7ee97646955bec0fd3.tar.gz
kdepimpi-11b5b0eb24cfb943df106f7ee97646955bec0fd3.tar.bz2
fixiiii
Diffstat (limited to 'korganizer/koagendaitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaitem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp
index cead612..7b29ce7 100644
--- a/korganizer/koagendaitem.cpp
+++ b/korganizer/koagendaitem.cpp
@@ -412,13 +412,16 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint )
412 align = ( AlignCenter|BreakAnywhere|WordBreak); 412 align = ( AlignCenter|BreakAnywhere|WordBreak);
413#endif 413#endif
414 414
415 } 415 }
416 } 416 }
417 QRect dr; 417 QRect dr;
418 if ( w + x > parentWidget()->width() )
419 w = parentWidget()->width()-x;
418 paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); 420 paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr );
421 //qDebug("%d %d %d %d ", x, yy, w, h );
419 if ( mIncidence->cancelled() ){ 422 if ( mIncidence->cancelled() ){
420 if ( ! small ) { 423 if ( ! small ) {
421 QFontMetrics fm ( paint->font() ); 424 QFontMetrics fm ( paint->font() );
422 paint->drawLine(dr.left(), yy+fm.height()/2, dr.right()-2, yy+fm.height()/2); 425 paint->drawLine(dr.left(), yy+fm.height()/2, dr.right()-2, yy+fm.height()/2);
423 } 426 }
424 427