summaryrefslogtreecommitdiffabout
path: root/korganizer/kodaymatrix.cpp
authorzautrix <zautrix>2005-06-30 15:06:11 (UTC)
committer zautrix <zautrix>2005-06-30 15:06:11 (UTC)
commitd401e425af46703a89eb80802606edeea06c9538 (patch) (side-by-side diff)
treee32a98c44e340a6af6706fa99544cba648aa19f1 /korganizer/kodaymatrix.cpp
parentaf48ba51eeb7a766ca7b458d2287e55c121388cf (diff)
downloadkdepimpi-d401e425af46703a89eb80802606edeea06c9538.zip
kdepimpi-d401e425af46703a89eb80802606edeea06c9538.tar.gz
kdepimpi-d401e425af46703a89eb80802606edeea06c9538.tar.bz2
desk fixes
Diffstat (limited to 'korganizer/kodaymatrix.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kodaymatrix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index 067c34c..ec1154a 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -1184,33 +1184,34 @@ void KODayMatrix::paintEvent(QPaintEvent * pevent)
}
}
p.setPen(mDefaultTextColor);
p.drawRect(0, 0, width(), height());
} else {
//qDebug("NO redraw ");
}
bitBlt (this, pevent->rect().topLeft(), &myPix , pevent->rect() ,CopyROP);
mRedrawNeeded = false;
}
// ----------------------------------------------------------------------------
// R E SI Z E E V E N T H A N D L I N G
// ----------------------------------------------------------------------------
-void KODayMatrix::resizeEvent(QResizeEvent *)
+void KODayMatrix::resizeEvent(QResizeEvent * e)
{
QRect sz = frameRect();
daysize.setHeight(sz.height()*7 / NUMDAYS);
daysize.setWidth(sz.width() / 7);
+ QFrame::resizeEvent( e );
}
QSize KODayMatrix::sizeHint() const
{
QFontMetrics fm ( font() );
int wid = fm.width( "30") *7+3;
int hei = fm.height() * 6+3;
//qDebug("KODayMatrix::sizeHint()********************* %d %d", wid , hei);
return QSize ( wid, hei );
}