diff --git a/widgets/scrollbar.cpp b/widgets/scrollbar.cpp index c8f996713..1426f0dc2 100644 --- a/widgets/scrollbar.cpp +++ b/widgets/scrollbar.cpp @@ -49,6 +49,7 @@ ScrollBar::ScrollBar(QGraphicsWidget *parent) scrollbar->resize(scrollbar->sizeHint()); connect(scrollbar, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int))); + connect(scrollbar, SIGNAL(sliderMoved(int)), this, SIGNAL(sliderMoved(int))); } ScrollBar::~ScrollBar() diff --git a/widgets/scrollbar.h b/widgets/scrollbar.h index 85e4e69df..7ed61905e 100644 --- a/widgets/scrollbar.h +++ b/widgets/scrollbar.h @@ -158,6 +158,12 @@ Q_SIGNALS: */ void valueChanged(int value); + /** + * Emitted when the slider has been moved by the user + * @since 4.6 + */ + void sliderMoved(int value); + private: ScrollBarPrivate * const d; };