author | zautrix <zautrix> | 2005-02-19 22:16:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-19 22:16:06 (UTC) |
commit | 6c152b28df5d22b75b1b0dcef77073f0320c5710 (patch) (unidiff) | |
tree | 702ed341ef2eeebe00766f5969f4001dd4a0f814 /korganizer/koagendaitem.cpp | |
parent | 1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5 (diff) | |
download | kdepimpi-6c152b28df5d22b75b1b0dcef77073f0320c5710.zip kdepimpi-6c152b28df5d22b75b1b0dcef77073f0320c5710.tar.gz kdepimpi-6c152b28df5d22b75b1b0dcef77073f0320c5710.tar.bz2 |
fixxhhh
-rw-r--r-- | korganizer/koagendaitem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index 7b29ce7..d0a7b07 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp | |||
@@ -402,19 +402,19 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint ) | |||
402 | if ( colsum < 250 ) | 402 | if ( colsum < 250 ) |
403 | paint->setPen ( white); | 403 | paint->setPen ( white); |
404 | if ( x < 0 ) { | 404 | if ( x < 0 ) { |
405 | w = w+x-3; | 405 | w = w+x-3; |
406 | x = 3; | 406 | x = 3; |
407 | if ( w > parentWidget()->width() ){ | 407 | if ( w > parentWidget()->width() ){ |
408 | w = parentWidget()->width() - 6; | 408 | w = parentWidget()->width() - 6; |
409 | #ifndef DESKTOP_VERSION | 409 | #ifndef DESKTOP_VERSION |
410 | align = ( AlignCenter|WordBreak); | 410 | align = ( AlignHCenter|WordBreak|AlignTop); |
411 | #else | 411 | #else |
412 | align = ( AlignCenter|BreakAnywhere|WordBreak); | 412 | align = ( AlignHCenter|BreakAnywhere|WordBreak|AlignTop); |
413 | #endif | 413 | #endif |
414 | 414 | ||
415 | } | 415 | } |
416 | } | 416 | } |
417 | QRect dr; | 417 | QRect dr; |
418 | if ( w + x > parentWidget()->width() ) | 418 | if ( w + x > parentWidget()->width() ) |
419 | w = parentWidget()->width()-x; | 419 | w = parentWidget()->width()-x; |
420 | paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); | 420 | paint->drawText ( x, yy, w, h, align, mDisplayedText, -1, &dr ); |