author | sandman <sandman> | 2002-07-06 19:16:43 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-07-06 19:16:43 (UTC) |
commit | 2fa52f80f59249c3f838fa6fdbc2a890e4d96334 (patch) (side-by-side diff) | |
tree | 676cd870c02fad226755f0d6ddb95ed6147bfa4a | |
parent | 3a422983abc7342c9229dccac825d0608fca10f3 (diff) | |
download | opie-2fa52f80f59249c3f838fa6fdbc2a890e4d96334.zip opie-2fa52f80f59249c3f838fa6fdbc2a890e4d96334.tar.gz opie-2fa52f80f59249c3f838fa6fdbc2a890e4d96334.tar.bz2 |
Use only two (instead of three) button controls on scrollbars due to space
constraints) -- will be configureable somtime ...
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index acf0a42..67e53e9 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp @@ -1522,3 +1522,3 @@ void LiquidStyle::drawScrollBarControls(QPainter *p, const QScrollBar *sb, } - subB.setRect( subX,subY,buttonDim,buttonDim ); + subB.setRect( subX,subY,0,0); // buttonDim,buttonDim ); addB.setRect( addX,addY,buttonDim,buttonDim ); @@ -1550,3 +1550,3 @@ void LiquidStyle::drawScrollBarControls(QPainter *p, const QScrollBar *sb, painter.begin(&sbBuffer); - QRect bgR(0, subB.bottom()+1, sb->width(), (len-(buttonDim*3))+1); + QRect bgR(0, subB.bottom()+1, sb->width(), (len-(buttonDim*2))+1); if(sliderR.height() >= 8){ @@ -1616,3 +1616,3 @@ void LiquidStyle::drawScrollBarControls(QPainter *p, const QScrollBar *sb, painter.begin(&sbBuffer); - QRect bgR(subB.right()+1, 0, (len-(buttonDim*3))+1, sb->height()); + QRect bgR(subB.right()+1, 0, (len-(buttonDim*2))+1, sb->height()); if(sliderR.width() >= 8){ @@ -1687,6 +1687,6 @@ void LiquidStyle::drawScrollBarControls(QPainter *p, const QScrollBar *sb, if ( controls & SubLine ) { - drawSBButton(p, subB, g, activeControl == SubLine); - drawArrow( p, horiz ? LeftArrow : UpArrow, - false, subB.x()+4, subB.y()+4, - subB.width()-8, subB.height()-8, g, !maxed); + // drawSBButton(p, subB, g, activeControl == SubLine); + // drawArrow( p, horiz ? LeftArrow : UpArrow, + // false, subB.x()+4, subB.y()+4, + // subB.width()-8, subB.height()-8, g, !maxed); drawSBButton(p, subHC, g, activeControl == SubLine); @@ -1791,4 +1791,4 @@ void LiquidStyle::scrollBarMetrics(const QScrollBar *sb, int &sliderMin, - sliderMin = b + buttonDim; - maxLength = length - b*2 - buttonDim*3; + sliderMin = b + 0; // buttonDim; + maxLength = length - b*2 - buttonDim*2; // 3; |