author | zautrix <zautrix> | 2005-03-26 11:15:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-26 11:15:27 (UTC) |
commit | bc8929ccca1ad8cd04f61366c78254803d9c1565 (patch) (side-by-side diff) | |
tree | 9a99b7e9cefa3c32f90e494afb7e324c59cb8584 /microkde/KDGanttMinimizeSplitter.cpp | |
parent | ef825f1805452ba2cfb30cd7a41c392d3961f01e (diff) | |
download | kdepimpi-bc8929ccca1ad8cd04f61366c78254803d9c1565.zip kdepimpi-bc8929ccca1ad8cd04f61366c78254803d9c1565.tar.gz kdepimpi-bc8929ccca1ad8cd04f61366c78254803d9c1565.tar.bz2 |
nf
Diffstat (limited to 'microkde/KDGanttMinimizeSplitter.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | microkde/KDGanttMinimizeSplitter.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/microkde/KDGanttMinimizeSplitter.cpp b/microkde/KDGanttMinimizeSplitter.cpp index 84edc0d..c60b566 100644 --- a/microkde/KDGanttMinimizeSplitter.cpp +++ b/microkde/KDGanttMinimizeSplitter.cpp @@ -82,2 +82,3 @@ KDGanttSplitterHandle::KDGanttSplitterHandle( Qt::Orientation o, setMouseTracking( true ); + mMouseDown = false; //setMaximumHeight( 5 ); // test only @@ -128,3 +129,3 @@ void KDGanttSplitterHandle::mousePressEvent( QMouseEvent *e ) mouseOffset = s->pick(e->pos()); - if ( _activeButton != 0) + mMouseDown = true; repaint(); @@ -173,2 +174,3 @@ void KDGanttSplitterHandle::mouseReleaseEvent( QMouseEvent *e ) { + mMouseDown = false; if ( _activeButton != 0 ) { @@ -279,4 +281,8 @@ void KDGanttSplitterHandle::paintEvent( QPaintEvent * ) col = colorGroup().background().dark( 250 ); + else { + if ( mMouseDown ) + col = Qt::white; else col = colorGroup().background().dark( 150 ); + } //QColor col = backgroundColor().dark( 130 ); |