diff options
Diffstat (limited to 'ui/qt/overlay_scroll_bar.h')
-rw-r--r-- | ui/qt/overlay_scroll_bar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt/overlay_scroll_bar.h b/ui/qt/overlay_scroll_bar.h index a9e2d7ad3b..699ff11ef9 100644 --- a/ui/qt/overlay_scroll_bar.h +++ b/ui/qt/overlay_scroll_bar.h @@ -59,6 +59,10 @@ public: QRect grooveRect(); public slots: + // Qt 4's QScrollBar::setRange isn't a slot. We can't wrap this in + //#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + // because Qt 4's MOC doesn't support macros. + void setChildRange(int min, int max) { child_sb_.setRange(min, max); } protected: virtual void resizeEvent(QResizeEvent * event); @@ -76,6 +80,7 @@ private: int start_pos_; int end_pos_; int selected_pos_; + }; #endif // __OVERLAY_SCROLL_BAR_H__ |