author | zautrix <zautrix> | 2005-02-19 16:07:52 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-19 16:07:52 (UTC) |
commit | e15d171a0630656b6e4a66d6cab6a7d64a37434b (patch) (side-by-side diff) | |
tree | f406dd7fc0d4300f18294bc7fbe7b06ab4524481 /korganizer/komonthview.cpp | |
parent | 4858dcb045afc57ce98877cca787c4430146bea8 (diff) | |
download | kdepimpi-e15d171a0630656b6e4a66d6cab6a7d64a37434b.zip kdepimpi-e15d171a0630656b6e4a66d6cab6a7d64a37434b.tar.gz kdepimpi-e15d171a0630656b6e4a66d6cab6a7d64a37434b.tar.bz2 |
mday mv fix
-rw-r--r-- | korganizer/komonthview.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index f558084..ddac6e4 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -239,45 +239,47 @@ void MonthViewItem::paint(QPainter *p) p->fillRect ( x, y,size,size, Qt::red ); x += size + 1; } if ( mReply ) { p->fillRect ( x, y,size,size, Qt::yellow ); x += size + 1; } } if ( mMultiday ) { int yyy = y+(size/2); int sizeM = size+2; p->setBrush( QBrush::SolidPattern ); - p->drawLine ( x+sizeM/2, yyy, x +sizeM +sizeM/2-2, yyy ) ; + p->drawLine ( x+1, yyy, x +sizeM +sizeM/2-1, yyy ) ; if ( mMultiday == 2 || mMultiday == 3 ) { QPointArray pa ( 3 ); pa.setPoint (0, x, yyy ); pa.setPoint (1, x+sizeM/2, yyy+sizeM/2 ); pa.setPoint (2, x+sizeM/2, yyy-sizeM/2 ); p->drawPolygon( pa ); } if ( mMultiday == 2 || mMultiday == 1 ) { QPointArray pa ( 3 ); pa.setPoint (0, x+sizeM +sizeM/2, yyy ); pa.setPoint (1, x+sizeM, yyy+sizeM/2 ); pa.setPoint (2, x+sizeM, yyy-sizeM/2 ); p->drawPolygon( pa ); } if ( mMultiday == 1 ) { - p->fillRect ( x, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); + // p->fillRect ( x, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); + p->drawLine ( x+1, yyy-sizeM/2, x+1, yyy+sizeM/2 ); } if ( mMultiday == 3 ) { - p->fillRect ( x+sizeM, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); + // p->fillRect ( x+sizeM, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); + p->drawLine ( x+sizeM +sizeM/2-1, yyy-sizeM/2, x+sizeM +sizeM/2-1, yyy+sizeM/2 ); } x += sizeM/2 + 1; x += sizeM + 1; } QFontMetrics fm = p->fontMetrics(); int yPos; int pmheight = size; if( pmheight < fm.height() ) yPos = fm.ascent() + fm.leading()/2; else yPos = pmheight/2 - fm.height()/2 + fm.ascent(); |