author | zautrix <zautrix> | 2005-01-26 23:12:59 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-26 23:12:59 (UTC) |
commit | f20b5e71f9ae61b18f0ced792508b40432ad50b6 (patch) (side-by-side diff) | |
tree | 3dde48c6dcecf2e5c19d3e7a62aba57c385e92df /korganizer | |
parent | 15351333eff09beadb6e691e9f0aab2aaf0a95a0 (diff) | |
download | kdepimpi-f20b5e71f9ae61b18f0ced792508b40432ad50b6.zip kdepimpi-f20b5e71f9ae61b18f0ced792508b40432ad50b6.tar.gz kdepimpi-f20b5e71f9ae61b18f0ced792508b40432ad50b6.tar.bz2 |
fixes
-rw-r--r-- | korganizer/koagendaview.cpp | 2 | ||||
-rw-r--r-- | korganizer/koagendaview.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b5596d9..05216a7 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp @@ -200,16 +200,17 @@ void TimeLabels::positionChanged() void TimeLabels::setAgenda(KOAgenda* agenda) { mAgenda = agenda; } void TimeLabels::contentsMousePressEvent ( QMouseEvent * e) { mMouseDownY = e->pos().y(); + mOrgCap = topLevelWidget()->caption(); } void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e ) { int diff = mMouseDownY - e->pos().y(); if ( diff < 10 && diff > -10 ) return; int tSize = KOPrefs::instance()->mHourSize + (diff/10) ; @@ -218,16 +219,17 @@ void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e ) if ( tSize > 18 ) tSize = 18; tSize = (tSize-2)/2; topLevelWidget()->setCaption(i18n("New Agendasize: %1").arg(tSize)); } void TimeLabels::contentsMouseReleaseEvent ( QMouseEvent * e ) { + topLevelWidget()->setCaption( mOrgCap ); int diff = mMouseDownY - e->pos().y(); if ( diff < 10 && diff > -10 ) return; int tSize = KOPrefs::instance()->mHourSize + (diff/10); if ( tSize < 4 ) tSize = 4; if ( tSize > 18 ) tSize = 18; diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index 221b0ea..3cf938f 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h @@ -72,16 +72,17 @@ class TimeLabels : public QScrollView { void positionChanged(); signals: void scaleChanged(); protected: void drawContents(QPainter *p,int cx, int cy, int cw, int ch); private: int mMouseDownY; + QString mOrgCap; int mRows; int mCellHeight; /** */ KOAgenda* mAgenda; }; class EventIndicator : public QFrame { |