summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kdatenavigator.cpp4
-rw-r--r--korganizer/kdatenavigator.h2
-rw-r--r--korganizer/kodaymatrix.cpp8
3 files changed, 9 insertions, 5 deletions
diff --git a/korganizer/kdatenavigator.cpp b/korganizer/kdatenavigator.cpp
index 4b50b5a..2321acb 100644
--- a/korganizer/kdatenavigator.cpp
+++ b/korganizer/kdatenavigator.cpp
@@ -174,4 +174,4 @@ void KDateNavigator::slotMonthSelected( int m )
if ( m_MthYr.month() <= mMonthSignalOffset)
- m += 12;
- int mo = m - mMonthSignalOffset;
+ m += 12;
+ //qDebug("%d mMonthSignalOffset %d emit %d", m, mMonthSignalOffset, m - mMonthSignalOffset);
emit monthSelected( m - mMonthSignalOffset );
diff --git a/korganizer/kdatenavigator.h b/korganizer/kdatenavigator.h
index d1f32b6..77b9b7c 100644
--- a/korganizer/kdatenavigator.h
+++ b/korganizer/kdatenavigator.h
@@ -65,3 +65,3 @@ class KDateNavigator: public QFrame
NavigatorBar *navigatorBar() const { return mNavigatorBar; }
- void setMonthSignalOffset ( int off ) { mMonthSignalOffset = off;}
+ void setMonthSignalOffset ( int off ) { mMonthSignalOffset = off%12;}
QSize yourSizeHint() { return mySizeHint; }
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index 9baff20..493382d 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -413,4 +413,4 @@ void KODayMatrix::updateView(QDate actdate)
#ifdef DESKTOP_VERSION
- //mRepaintTimer->start( 150 );
- mUpdateTimer->start( 150 );
+ //mRepaintTimer->start( 100 );
+ mUpdateTimer->start( 100 );
#else
@@ -837,2 +837,4 @@ void KODayMatrix::paintEvent(QPaintEvent * pevent)
}
+ if ( col == 0 )
+ addCol = 1;
p.drawRect(col*dwidth+addCol, row*dheight+addRow, dwidth, dheight+1);
@@ -879,2 +881,4 @@ void KODayMatrix::paintEvent(QPaintEvent * pevent)
++addCol;//++addCol;
+ if ( row == 0)
+ addRow = 1;
p.drawText(col*dwidth+addCol, row*dheight+addRow, dwidth, dheight,