-rw-r--r-- | microkde/KDGanttMinimizeSplitter.cpp | 10 | ||||
-rw-r--r-- | microkde/KDGanttMinimizeSplitter.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/microkde/KDGanttMinimizeSplitter.cpp b/microkde/KDGanttMinimizeSplitter.cpp index 567ae54..84edc0d 100644 --- a/microkde/KDGanttMinimizeSplitter.cpp +++ b/microkde/KDGanttMinimizeSplitter.cpp @@ -166,6 +166,7 @@ void KDGanttSplitterHandle::toggle() s->moveSplitter( _origPos, id() ); _collapsed = false; } + repaint(); } void KDGanttSplitterHandle::mouseReleaseEvent( QMouseEvent *e ) @@ -480,6 +481,15 @@ void KDGanttMinimizeSplitter::init() #endif +void KDGanttMinimizeSplitter::toggle() +{ + if ( mFirstHandle ) + mFirstHandle->toggle(); + else + qDebug("KDGanttMinimizeSplitter::toggle::sorry, handle not available "); + +} + /*! \brief the orientation of the splitter diff --git a/microkde/KDGanttMinimizeSplitter.h b/microkde/KDGanttMinimizeSplitter.h index 75e0443..8120d14 100644 --- a/microkde/KDGanttMinimizeSplitter.h +++ b/microkde/KDGanttMinimizeSplitter.h @@ -80,6 +80,8 @@ public: void setSizes( QValueList<int> ); KDGanttSplitterHandle* firstHandle(){ return mFirstHandle;} void expandPos( int id, int* min, int* max ); +public slots: + void toggle(); protected: void childEvent( QChildEvent * ); |