summaryrefslogtreecommitdiff
path: root/muse2
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2010-10-27 20:52:43 +0000
committerRobert Jonsson <spamatica@gmail.com>2010-10-27 20:52:43 +0000
commitf71d7f97da32e1d960e3932994562d1b0256c980 (patch)
treecc11e70fdcba274daf9e67bad79416f9ce137d15 /muse2
parent764788d8150555ffa13d1c22838565c5cd50a892 (diff)
Fixed redrawing of slider, QPainter not allowed outside paintEvent.
Diffstat (limited to 'muse2')
-rw-r--r--muse2/muse/widgets/slider.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/muse2/muse/widgets/slider.cpp b/muse2/muse/widgets/slider.cpp
index f93cadc1..64b57f16 100644
--- a/muse2/muse/widgets/slider.cpp
+++ b/muse2/muse/widgets/slider.cpp
@@ -775,12 +775,7 @@ void Slider::resizeEvent(QResizeEvent *e)
void Slider::valueChange()
{
- QPainter p;
-
- p.begin(this);
- drawSlider(&p, d_sliderRect);
- p.end();
-
+ update();
SliderBase::valueChange();
}