author | zautrix <zautrix> | 2005-03-26 11:15:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-26 11:15:27 (UTC) |
commit | bc8929ccca1ad8cd04f61366c78254803d9c1565 (patch) (unidiff) | |
tree | 9a99b7e9cefa3c32f90e494afb7e324c59cb8584 /microkde/KDGanttMinimizeSplitter.h | |
parent | ef825f1805452ba2cfb30cd7a41c392d3961f01e (diff) | |
download | kdepimpi-bc8929ccca1ad8cd04f61366c78254803d9c1565.zip kdepimpi-bc8929ccca1ad8cd04f61366c78254803d9c1565.tar.gz kdepimpi-bc8929ccca1ad8cd04f61366c78254803d9c1565.tar.bz2 |
nf
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 | |||
@@ -140,49 +140,50 @@ private: // Disabled copy constructor and operator= | |||
140 | // This class was continued from a verbatim copy of the | 140 | // This class was continued from a verbatim copy of the |
141 | // QSplitterHandle pertaining to the Qt Enterprise License and the | 141 | // QSplitterHandle pertaining to the Qt Enterprise License and the |
142 | // GPL. It has only been renamed to KDGanttSplitterHandler in order to | 142 | // GPL. It has only been renamed to KDGanttSplitterHandler in order to |
143 | // avoid a symbol clash on some platforms. | 143 | // avoid a symbol clash on some platforms. |
144 | class KDGanttSplitterHandle : public QWidget | 144 | class KDGanttSplitterHandle : public QWidget |
145 | { | 145 | { |
146 | Q_OBJECT | 146 | Q_OBJECT |
147 | #if QT_VERSION >= 232 | 147 | #if QT_VERSION >= 232 |
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 |