author | zautrix <zautrix> | 2005-04-02 09:05:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-02 09:05:01 (UTC) |
commit | e0d51120d2f0c178115746e0c1357af40f95bc77 (patch) (side-by-side diff) | |
tree | a94402a08712553fedd1de5b3c604af777279674 /microkde | |
parent | e7cb4c20af8b07bf923c864026481ce316c40e1d (diff) | |
download | kdepimpi-e0d51120d2f0c178115746e0c1357af40f95bc77.zip kdepimpi-e0d51120d2f0c178115746e0c1357af40f95bc77.tar.gz kdepimpi-e0d51120d2f0c178115746e0c1357af40f95bc77.tar.bz2 |
fix
-rw-r--r-- | microkde/KDGanttMinimizeSplitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/microkde/KDGanttMinimizeSplitter.cpp b/microkde/KDGanttMinimizeSplitter.cpp index 2a30346..fb5d4e3 100644 --- a/microkde/KDGanttMinimizeSplitter.cpp +++ b/microkde/KDGanttMinimizeSplitter.cpp @@ -243,65 +243,65 @@ QValueList<QPointArray> KDGanttSplitterHandle::buttonRegions() else if ( !_collapsed && s->minimizeDirection() == KDGanttMinimizeSplitter::Up || _collapsed && s->minimizeDirection() == KDGanttMinimizeSplitter::Down) { int mid = width()/2 + voffset[i]; arr.setPoints( 3, mid - sw + 4, sw-4, mid, 0, mid + sw - 4, sw-4 ); } else if ( !_collapsed && s->minimizeDirection() == KDGanttMinimizeSplitter::Down || _collapsed && s->minimizeDirection() == KDGanttMinimizeSplitter::Up ) { int mid = width()/2 + voffset[i]; arr.setPoints( 3, mid - sw + 4, 1-yyy, mid, sw-3-yyy, mid + sw -4, 1-yyy); } list.append( arr ); } return list; } void KDGanttSplitterHandle::paintEvent( QPaintEvent * ) { QPixmap buffer( size() ); QPainter p( &buffer ); //LR // Draw the splitter rectangle p.setBrush( colorGroup().background() ); p.setPen( colorGroup().foreground() ); //p.drawRect( rect() ); #ifndef DESKTOP_VERSION - if ( mMouseDown ) + if ( mMouseDown && ! _activeButton) buffer.fill( colorGroup().background().dark() ); else #endif buffer.fill( colorGroup().background() ); //buffer.fill( backgroundColor() ); // parentWidget()->style().drawPrimitive( QStyle::PE_Panel, &p, rect(), parentWidget()->colorGroup()); int sw = 8; // Hardcoded, given I didn't use styles anymore, I didn't like to use their size // arrow color QColor col; if ( _activeButton ) col = colorGroup().background().dark( 250 ); else { if ( mMouseDown ) col = Qt::white; else col = colorGroup().background().dark( 150 ); } //QColor col = backgroundColor().dark( 130 ); p.setBrush( col ); p.setPen( col ); QValueList<QPointArray> list = buttonRegions(); int index = 1; if ( mUseOffset ) p.translate( 0, 1 ); for ( QValueList<QPointArray>::Iterator it = list.begin(); it != list.end(); ++it ) { if ( index == _activeButton ) { /* if ( ! _collapsed ) { |