Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] warning if running with Qt4

From: Gerald Combs <gerald@xxxxxxxxxxxxx>
Date: Sun, 1 May 2016 15:45:37 -0700
On 5/1/16 9:13 AM, Martin Kaiser wrote:
> Hi Gerald, all,
> 
> the current master shows this warning on a Qt4 system.
> 
> martin@husavik:~/src/wireshark.git$ ./wireshark
> Object::connect: No such slot QScrollBar::setRange(int,int) in overlay_scroll_bar.cpp:74
> 
> The offending line is
> connect(this, SIGNAL(rangeChanged(int,int)), &child_sb_, SLOT(setRange(int,int)));
> 
> In Qt4, QScrollBar has no setRange() method.
> 
> I'm not sure how to implement such things portably without littering the
> code with #if QT_VERSION >= QT_VERSION_CHECK(...) lines.

QScrollBar::setRange exists in Qt4, but it's not a slot. Fix inbound in
change 15215.