Change PosBar to use the new PixmapSlider class

This commit is contained in:
Thomas Frauendorfer 2008-03-21 22:43:21 +01:00
parent 6e7e2c2184
commit 220c124447
7 changed files with 58 additions and 204 deletions

View file

@ -58,12 +58,17 @@ class PixmapSlider : public QAbstractSlider
int sliderValueFromPosition (int pos);
int backgroundIndex ();
// horizontal offset in vertical sliders or
// vertical offset in horizontal sliders
void setSliderOffset (int offset) { m_slider_offset = offset; };
private:
QPixmapList m_backgrounds;
QPixmap m_normal;
QPixmap m_pressed;
int m_background_index;
int m_slider_offset;
};
#endif