diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-13 11:05:14 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-13 11:05:14 -0500 |
commit | 3c83d427acfdb89355b76e95c048fa27e586301c (patch) | |
tree | 32bbad8c4de228faf3949c465e0873e6dc8d1f0b /kstyles | |
parent | 05fe2bddf8a4983a9e6c03a5e51d43a6ef80f8a8 (diff) | |
download | tdelibs-3c83d427acfdb89355b76e95c048fa27e586301c.tar.gz tdelibs-3c83d427acfdb89355b76e95c048fa27e586301c.zip |
Fix Asteroid spin widget hints
Diffstat (limited to 'kstyles')
-rw-r--r-- | kstyles/asteroid/asteroid.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/kstyles/asteroid/asteroid.cpp b/kstyles/asteroid/asteroid.cpp index c1994fa96..34e3f6064 100644 --- a/kstyles/asteroid/asteroid.cpp +++ b/kstyles/asteroid/asteroid.cpp @@ -2132,22 +2132,32 @@ void AsteroidStyle::drawComplexControl(TQ_ComplexControl cc, p->drawLine(x2-aw-1, y+2, x2-aw-1, y2-1); // Draw the arrow buttons - SFlags upflags = Style_Default | Style_Enabled; - SFlags downflags = Style_Default | Style_Enabled; + SFlags upflags = Style_Default; + SFlags downflags = Style_Default; + if (ceData.spinWidgetData.upEnabled) { + upflags |= Style_Enabled; + } + if (ceData.spinWidgetData.downEnabled) { + downflags |= Style_Enabled; + } if (sa == SC_SpinWidgetUp) { upflags |= Style_On; upflags |= Style_Sunken; downflags |= Style_Raised; } - else if (sa == SC_SpinWidgetDown) { + if (sa == SC_SpinWidgetDown) { downflags |= Style_On; downflags |= Style_Sunken; upflags |= Style_Raised; } + p->setPen(TQt::NoPen); drawPrimitive(PE_ButtonBevel, p, ceData, elementFlags, arrowup, cg, upflags, o); + p->setPen(TQt::NoPen); drawPrimitive(PE_ButtonBevel, p, ceData, elementFlags, arrowdn, cg, downflags, o); + p->setPen(TQt::NoPen); drawPrimitive(PE_SpinWidgetUp, p, ceData, elementFlags, arrowup, cg, upflags, o); + p->setPen(TQt::NoPen); drawPrimitive(PE_SpinWidgetDown, p, ceData, elementFlags, arrowdn, cg, downflags, o); break; |