Diffstat (limited to 'microkde/KDGanttMinimizeSplitter.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/KDGanttMinimizeSplitter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/microkde/KDGanttMinimizeSplitter.h b/microkde/KDGanttMinimizeSplitter.h index 8120d14..84d3d8e 100644 --- a/microkde/KDGanttMinimizeSplitter.h +++ b/microkde/KDGanttMinimizeSplitter.h | |||
@@ -148,41 +148,42 @@ class KDGanttSplitterHandle : public QWidget | |||
148 | public: | 148 | public: |
149 | KDGanttSplitterHandle( Qt::Orientation o, | 149 | KDGanttSplitterHandle( Qt::Orientation o, |
150 | KDGanttMinimizeSplitter *parent, const char* name=0 ); | 150 | KDGanttMinimizeSplitter *parent, const char* name=0 ); |
151 | void setOrientation( Qt::Orientation o ); | 151 | void setOrientation( Qt::Orientation o ); |
152 | Qt::Orientation orientation() const { return orient; } | 152 | Qt::Orientation orientation() const { return orient; } |
153 | 153 | ||
154 | bool opaque() const { return s->opaqueResize(); } | 154 | bool opaque() const { return s->opaqueResize(); } |
155 | 155 | ||
156 | QSize sizeHint() const; | 156 | QSize sizeHint() const; |
157 | void toggle(); | 157 | void toggle(); |
158 | 158 | ||
159 | int id() const { return myId; } // data->list.at(id())->wid == this | 159 | int id() const { return myId; } // data->list.at(id())->wid == this |
160 | void setId( int i ) { myId = i; } | 160 | void setId( int i ) { myId = i; } |
161 | 161 | ||
162 | protected: | 162 | protected: |
163 | QValueList<QPointArray> buttonRegions(); | 163 | QValueList<QPointArray> buttonRegions(); |
164 | void paintEvent( QPaintEvent * ); | 164 | void paintEvent( QPaintEvent * ); |
165 | void mouseMoveEvent( QMouseEvent * ); | 165 | void mouseMoveEvent( QMouseEvent * ); |
166 | void mousePressEvent( QMouseEvent * ); | 166 | void mousePressEvent( QMouseEvent * ); |
167 | void mouseReleaseEvent( QMouseEvent * ); | 167 | void mouseReleaseEvent( QMouseEvent * ); |
168 | int onButton( const QPoint& p ); | 168 | int onButton( const QPoint& p ); |
169 | void updateCursor( const QPoint& p ); | 169 | void updateCursor( const QPoint& p ); |
170 | 170 | ||
171 | private: | 171 | private: |
172 | bool mMouseDown; | ||
172 | QSize mSizeHint; | 173 | QSize mSizeHint; |
173 | bool mUseOffset; | 174 | bool mUseOffset; |
174 | Qt::Orientation orient; | 175 | Qt::Orientation orient; |
175 | bool opaq; | 176 | bool opaq; |
176 | int myId; | 177 | int myId; |
177 | 178 | ||
178 | KDGanttMinimizeSplitter *s; | 179 | KDGanttMinimizeSplitter *s; |
179 | int _activeButton; | 180 | int _activeButton; |
180 | bool _collapsed; | 181 | bool _collapsed; |
181 | int _origPos; | 182 | int _origPos; |
182 | #endif | 183 | #endif |
183 | }; | 184 | }; |
184 | #endif | 185 | #endif |
185 | 186 | ||
186 | #endif // QT_NO_SPLITTER | 187 | #endif // QT_NO_SPLITTER |
187 | 188 | ||
188 | #endif // KDGANTTMINIMIZESPLITTER_H | 189 | #endif // KDGANTTMINIMIZESPLITTER_H |