uisupport: Forcefully disable horizontal scrollbar in BufferView
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 12 Apr 2018 20:38:02 +0000 (22:38 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 12 Apr 2018 21:10:07 +0000 (23:10 +0200)
commitf7fc81c5c428a9a04f89a54034d5091412c8e6fa
tree3f1452a34ea16adf6827f0c7596603ab45045f05
parentbdeeb5d619255389a64f43ad69de862c79046116
uisupport: Forcefully disable horizontal scrollbar in BufferView

Qt 5.10.1 severly broke QHeaderView and by extension, QTreeView,
resulting in a horizontal scrollbar being shown. In order to avoid
making this issue too obvious for people using that version of Qt
(including the builds currently generated by our CI), force the
scrollbar to be hidden in BufferView.

The contents can still be scrolled sideways e.g. with horizontal
mouse wheel emulation, but that should not hit many users in
practice.

Earlier or later versions of Qt seem to not suffer from that issue,
but always hiding the scrollbar doesn't hurt either way.

(cherry picked from commit dd27cd1f84ecceb5fb287894373d4cb42131a03f)
src/uisupport/bufferview.cpp