Wireshark mailing list archives

Re: warning if running with Qt4


From: Gerald Combs <gerald () wireshark org>
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.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: