-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 @@ -206,4 +206,5 @@ void TimeLabels::contentsMousePressEvent ( QMouseEvent * e) { mMouseDownY = e->pos().y(); + mOrgCap = topLevelWidget()->caption(); } @@ -224,4 +225,5 @@ void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e ) void TimeLabels::contentsMouseReleaseEvent ( QMouseEvent * e ) { + topLevelWidget()->setCaption( mOrgCap ); int diff = mMouseDownY - e->pos().y(); if ( diff < 10 && diff > -10 ) diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index 221b0ea..3cf938f 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h @@ -78,4 +78,5 @@ class TimeLabels : public QScrollView { private: int mMouseDownY; + QString mOrgCap; int mRows; int mCellHeight; |