summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaitem.cpp
authorzautrix <zautrix>2005-02-19 22:16:06 (UTC)
committer zautrix <zautrix>2005-02-19 22:16:06 (UTC)
commit6c152b28df5d22b75b1b0dcef77073f0320c5710 (patch) (side-by-side diff)
tree702ed341ef2eeebe00766f5969f4001dd4a0f814 /korganizer/koagendaitem.cpp
parent1994c2c1e8d28b9ff7e4a42954f24dc8e48a9ff5 (diff)
downloadkdepimpi-6c152b28df5d22b75b1b0dcef77073f0320c5710.zip
kdepimpi-6c152b28df5d22b75b1b0dcef77073f0320c5710.tar.gz
kdepimpi-6c152b28df5d22b75b1b0dcef77073f0320c5710.tar.bz2
fixxhhh
Diffstat (limited to 'korganizer/koagendaitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaitem.cpp4
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
@@ -386,51 +386,51 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint )
#ifndef DESKTOP_VERSION
align = ( AlignLeft|WordBreak|AlignTop);
#else
align = ( AlignLeft|BreakAnywhere|WordBreak|AlignTop);
#endif
if ( addIcon ) {
if ( ! horLayout ) {
x += AGENDA_ICON_SIZE+3;
w -= (AGENDA_ICON_SIZE+3);
}
else {
yy+= AGENDA_ICON_SIZE+2;
h -=(AGENDA_ICON_SIZE+3);
}
}
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 = ( AlignCenter|WordBreak);
+ align = ( AlignHCenter|WordBreak|AlignTop);
#else
- align = ( AlignCenter|BreakAnywhere|WordBreak);
+ 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() ){
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 );