summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/slider.h
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2011-09-14 03:02:14 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2011-09-14 03:02:14 +0000
commit42269af2e0cc7a8c7b70d89ffa270184acde3dec (patch)
tree724d299da6d46185decd87e25b830d1be740be0c /muse2/muse/widgets/slider.h
parent725b1d96a20557856fc1ceaf3d886bdd2f816826 (diff)
The sizeHint of Slider is respected, and the plugin window now has a reasonable width. Scale support commented out in Slider.
Diffstat (limited to 'muse2/muse/widgets/slider.h')
-rw-r--r--muse2/muse/widgets/slider.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/muse2/muse/widgets/slider.h b/muse2/muse/widgets/slider.h
index 861d8f4b..5a2bff71 100644
--- a/muse2/muse/widgets/slider.h
+++ b/muse2/muse/widgets/slider.h
@@ -69,6 +69,9 @@ class Slider : public SliderBase, public ScaleIf
int d_bgStyle;
int markerPos;
+ uint vertical_hint;
+ uint horizontal_hint;
+
void drawHsBgSlot(QPainter *, const QRect&, const QRect&,const QBrush&);
void drawVsBgSlot(QPainter *, const QRect&, const QRect&,const QBrush&);
@@ -102,8 +105,9 @@ class Slider : public SliderBase, public ScaleIf
void setLineStep(double);
void setPageStep(double);
- void setMargins(int x, int y);
- QSize sizeHint(); // const;
+ void setMargins(int x, int y);
+ virtual QSize sizeHint() const;
+ void setSizeHint(uint w, uint h);
};
} // namespace MusEWidget