diff options
author | Robert Jonsson <spamatica@gmail.com> | 2010-10-27 20:52:43 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2010-10-27 20:52:43 +0000 |
commit | f71d7f97da32e1d960e3932994562d1b0256c980 (patch) | |
tree | cc11e70fdcba274daf9e67bad79416f9ce137d15 /muse2/muse | |
parent | 764788d8150555ffa13d1c22838565c5cd50a892 (diff) |
Fixed redrawing of slider, QPainter not allowed outside paintEvent.
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/widgets/slider.cpp | 7 |
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(); } |