Qt: Make the overlay scroll bar work with Qt 4.
authorGerald Combs <gerald@wireshark.org>
Sun, 1 May 2016 22:40:34 +0000 (15:40 -0700)
committerGerald Combs <gerald@wireshark.org>
Mon, 2 May 2016 15:19:44 +0000 (15:19 +0000)
commitb274bddbc0e46533f222a71c4075c8681bbd41c3
treed9e1e29544ddb607ce7bd4c1e54e1cacccf67321
parent2e23b506c766d98966ed213c760b2aa6232ba1fe
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>
ui/qt/overlay_scroll_bar.cpp
ui/qt/overlay_scroll_bar.h