author | zautrix <zautrix> | 2005-07-04 22:19:14 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-04 22:19:14 (UTC) |
commit | 671d832454c8b68e0bb44e439f28fb1c768e033d (patch) (side-by-side diff) | |
tree | a938029d62ba7d54ee5cb3de0c6cc0cc449dba51 /korganizer/koagenda.cpp | |
parent | d7931731fcf0ffeb5b5267f25fce741ebe1ced13 (diff) | |
download | kdepimpi-671d832454c8b68e0bb44e439f28fb1c768e033d.zip kdepimpi-671d832454c8b68e0bb44e439f28fb1c768e033d.tar.gz kdepimpi-671d832454c8b68e0bb44e439f28fb1c768e033d.tar.bz2 |
fixix
-rw-r--r-- | korganizer/koagenda.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 9b817bc..01cef35 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -1892,54 +1892,58 @@ void KOAgenda::computeSizes() mGridSpacingX = (width() - verticalScrollBar()->width()-frameOffset)/mColumns; if (height() > mGridSpacingY * mRows + 1 ) { KOPrefs::instance()->mHourSize = ((height())/mRows)+1; mGridSpacingY = KOPrefs::instance()->mHourSize ; resizeContents( mGridSpacingX * mColumns + 1 , mGridSpacingY * mRows + 1 ); emit resizedSignal(); } else resizeContents( mGridSpacingX * mColumns + 1 , mGridSpacingY * mRows + 1 ); KOAgendaItem *item; int subCellWidth; for ( item=mItems.first(); item != 0; item=mItems.next() ) { subCellWidth = mGridSpacingX / item->subCells(); item->resize(subCellWidth,item->height()); moveChild(item,(KOGlobals::self()->reverseLayout() ? (mColumns - 1 - item->cellX()) * mGridSpacingX : item->cellX() * mGridSpacingX) + item->subCell() * subCellWidth,childY(item)); } } int cw = contentsWidth(); 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(); marcus_bains(); drawContentsToPainter(); viewport()->repaint(false); } void KOAgenda::scrollUp() { scrollBy(0,-mScrollOffset); } void KOAgenda::scrollDown() { scrollBy(0,mScrollOffset); } void KOAgenda::popupAlarm() { if (!mClickedItem) { qDebug("KOAgenda::popupAlarm() called without having a clicked item "); return; |