summaryrefslogtreecommitdiffabout
path: root/korganizer/kodaymatrix.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kodaymatrix.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kodaymatrix.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index 9812321..ca896b5 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -209,21 +209,21 @@ void KODayMatrix::recalculateToday()
void KODayMatrix::updateView()
{
updateView(startdate);
}
void KODayMatrix::repaintViewTimed()
{
- //qDebug("KODayMatrix::repaintViewTimed ");
+ qDebug("KODayMatrix::repaintViewTimed ");
mRepaintTimer->stop();
repaint(false);
}
void KODayMatrix::updateViewTimed()
{
mUpdateTimer->stop();
- //qDebug("KODayMatrix::updateView(QDate actdate) %d", ++iii );
+ qDebug("KODayMatrix::updateView(QDate actdate)");
for(int i = 0; i < NUMDAYS; i++) {
// if events are set for the day then remember to draw it bold
QPtrList<Event> eventlist = mCalendar->events(days[i]);
Event *event;
int numEvents = eventlist.count();
@@ -285,22 +285,22 @@ void KODayMatrix::updateView(QDate actdate)
}
}
startdate = actdate;
mDayChanged = true;
recalculateToday();
}
- //qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() );
+ qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() );
if ( !isVisible() ) {
mPendingUpdateBeforeRepaint = true;
} else {
#ifdef DESKTOP_VERSION
- mRepaintTimer->start( 250 );
- mUpdateTimer->start( 2000 );
+ //mRepaintTimer->start( 250 );
+ mUpdateTimer->start( 250 );
#else
- mRepaintTimer->start( 350 );
- mUpdateTimer->start( 4000 );
+ mRepaintTimer->start( 350 );
+ mUpdateTimer->start( 2000 );
#endif
}
}
const QDate& KODayMatrix::getDate(int offset)
{
@@ -486,14 +486,14 @@ void KODayMatrix::dropEvent(QDropEvent *e)
// ----------------------------------------------------------------------------
void KODayMatrix::paintEvent(QPaintEvent * pevent)
{
//kdDebug() << "KODayMatrix::paintEvent() BEGIN" << endl;
if ( mPendingUpdateBeforeRepaint ) {
- updateViewTimed();
- mPendingUpdateBeforeRepaint = false;
+ updateViewTimed();
+ mPendingUpdateBeforeRepaint = false;
}
QPainter p(this);
QRect sz = frameRect();
int dheight = daysize.height();
int dwidth = daysize.width();