-rw-r--r-- | korganizer/koagenda.cpp | 10 | ||||
-rw-r--r-- | korganizer/koagendaitem.cpp | 6 | ||||
-rw-r--r-- | korganizer/koagendaitem.h | 1 |
3 files changed, 8 insertions, 9 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 9b817bc..01cef35 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -1913,12 +1913,16 @@ void KOAgenda::computeSizes() int ch = contentsHeight(); if ( mAllDayMode ) { QPixmap* paintPixAll = KOAgendaItem::paintPixAllday(); - if ( (paintPixAll->width() < cw || paintPixAll->height() < ch) && cw > 0 && ch > 0 ) + if ( (paintPixAll->width() < cw || paintPixAll->height() < ch) && cw > 0 && ch > 0 ) { + //qDebug("paintPixAll->resize "); paintPixAll->resize( cw, ch ); + } } else { QPixmap* paintPix = KOAgendaItem::paintPix(); - if ( paintPix->width() < cw || paintPix->height() < ch ) - KOAgendaItem::resizePixmap( cw , ch ); + if ( paintPix->width() < cw || paintPix->height() < ch ) { + //qDebug("paintPix->resize "); + paintPix->resize( cw , ch ); + } } checkScrollBoundaries(); diff --git a/korganizer/koagendaitem.cpp b/korganizer/koagendaitem.cpp index abb29f7..f855b03 100644 --- a/korganizer/koagendaitem.cpp +++ b/korganizer/koagendaitem.cpp @@ -470,11 +470,7 @@ void KOAgendaItem::paintMe( bool selected, QPainter* paint ) pa.end(); } -void KOAgendaItem::resizePixmap( int w , int h ) -{ - paintPix()->resize( w, h ); -} QPixmap * KOAgendaItem::paintPix() { static QPixmap* mPaintPix = 0; @@ -490,7 +486,7 @@ QPixmap * KOAgendaItem::paintPixAllday() static QPixmap* mPaintPixA = 0; if ( ! mPaintPixA ) { int w = QApplication::desktop()->width(); - int h = QApplication::desktop()->height()/3; + int h = QApplication::desktop()->height()/5; mPaintPixA = new QPixmap(w,h); } return mPaintPixA ; diff --git a/korganizer/koagendaitem.h b/korganizer/koagendaitem.h index 7103abe..3ed68b0 100644 --- a/korganizer/koagendaitem.h +++ b/korganizer/koagendaitem.h @@ -101,7 +101,6 @@ class KOAgendaItem : public QWidget void addConflictItem(KOAgendaItem *ci); void paintMe( bool, QPainter* painter = 0 ); void repaintMe(); - static void resizePixmap( int, int ); static QPixmap * paintPix(); static QPixmap * paintPixAllday(); void updateItem(); |