-rw-r--r-- | korganizer/koagendaitem.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index abb29f7..f855b03 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp | |||
@@ -465,37 +465,33 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint ) | |||
465 | QFontMetrics fm ( paint->font() ); | 465 | QFontMetrics fm ( paint->font() ); |
466 | paint->drawLine(dr.left(), yy+fm.height()/2, dr.right()-2, yy+fm.height()/2); | 466 | paint->drawLine(dr.left(), yy+fm.height()/2, dr.right()-2, yy+fm.height()/2); |
467 | } | 467 | } |
468 | 468 | ||
469 | } | 469 | } |
470 | pa.end(); | 470 | pa.end(); |
471 | 471 | ||
472 | } | 472 | } |
473 | void KOAgendaItem::resizePixmap( int w , int h ) | ||
474 | { | ||
475 | paintPix()->resize( w, h ); | ||
476 | 473 | ||
477 | } | ||
478 | QPixmap * KOAgendaItem::paintPix() | 474 | QPixmap * KOAgendaItem::paintPix() |
479 | { | 475 | { |
480 | static QPixmap* mPaintPix = 0; | 476 | static QPixmap* mPaintPix = 0; |
481 | if ( ! mPaintPix ) { | 477 | if ( ! mPaintPix ) { |
482 | int w = QApplication::desktop()->width(); | 478 | int w = QApplication::desktop()->width(); |
483 | int h = QApplication::desktop()->height(); | 479 | int h = QApplication::desktop()->height(); |
484 | mPaintPix = new QPixmap(w,h); | 480 | mPaintPix = new QPixmap(w,h); |
485 | } | 481 | } |
486 | return mPaintPix ; | 482 | return mPaintPix ; |
487 | } | 483 | } |
488 | QPixmap * KOAgendaItem::paintPixAllday() | 484 | QPixmap * KOAgendaItem::paintPixAllday() |
489 | { | 485 | { |
490 | static QPixmap* mPaintPixA = 0; | 486 | static QPixmap* mPaintPixA = 0; |
491 | if ( ! mPaintPixA ) { | 487 | if ( ! mPaintPixA ) { |
492 | int w = QApplication::desktop()->width(); | 488 | int w = QApplication::desktop()->width(); |
493 | int h = QApplication::desktop()->height()/3; | 489 | int h = QApplication::desktop()->height()/5; |
494 | mPaintPixA = new QPixmap(w,h); | 490 | mPaintPixA = new QPixmap(w,h); |
495 | } | 491 | } |
496 | return mPaintPixA ; | 492 | return mPaintPixA ; |
497 | } | 493 | } |
498 | 494 | ||
499 | void KOAgendaItem::paintEvent ( QPaintEvent *e ) | 495 | void KOAgendaItem::paintEvent ( QPaintEvent *e ) |
500 | { | 496 | { |
501 | 497 | ||