summaryrefslogtreecommitdiff
path: root/ui/qt/overlay_scroll_bar.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2016-05-01 15:40:34 -0700
committerGerald Combs <gerald@wireshark.org>2016-05-02 15:19:44 +0000
commitb274bddbc0e46533f222a71c4075c8681bbd41c3 (patch)
treed9e1e29544ddb607ce7bd4c1e54e1cacccf67321 /ui/qt/overlay_scroll_bar.cpp
parent2e23b506c766d98966ed213c760b2aa6232ba1fe (diff)
downloadwireshark-b274bddbc0e46533f222a71c4075c8681bbd41c3.tar.gz
Qt: Make the overlay scroll bar work with Qt 4.
In Qt 4, QScrollBar::setRange isn't a slot. Add a setChildRange slot and connect to it instead. Add a QT_VERSION_CHECK breadcrumb in a comment. Change-Id: Ie28bbb6bd8249c31154a2fe236667adf1d53df61 Reviewed-on: https://code.wireshark.org/review/15215 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/overlay_scroll_bar.cpp')
-rw-r--r--ui/qt/overlay_scroll_bar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/overlay_scroll_bar.cpp b/ui/qt/overlay_scroll_bar.cpp
index 766866c8a3..b7a589ccd4 100644
--- a/ui/qt/overlay_scroll_bar.cpp
+++ b/ui/qt/overlay_scroll_bar.cpp
@@ -73,7 +73,7 @@ OverlayScrollBar::OverlayScrollBar(Qt::Orientation orientation, QWidget *parent)
child_sb_.installEventFilter(this);
// XXX Do we need to connect anything else?
- connect(this, SIGNAL(rangeChanged(int,int)), &child_sb_, SLOT(setRange(int,int)));
+ connect(this, SIGNAL(rangeChanged(int,int)), this, SLOT(setChildRange(int,int)));
connect(this, SIGNAL(valueChanged(int)), &child_sb_, SLOT(setValue(int)));
connect(&child_sb_, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));