diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-11-27 17:01:05 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-11-27 18:50:15 +0000 |
commit | 7d6373ee22ef01c1860a9c1f3fab5c02de53de0e (patch) | |
tree | b8a59f7def4663dffd9695b3c83ac8e074f4154f /ui/qt/packet_list.h | |
parent | 3cd7991f7f6bf6a776b50f4ee11812cbedc4454e (diff) | |
download | wireshark-7d6373ee22ef01c1860a9c1f3fab5c02de53de0e.tar.gz |
Qt: remove automatic horizontal scrolling when selecting a row
QTreeView automatically scrolls so as to show as much as possible the content of the selected column.
Let's get rid of that.
Rename PacketList::setAutoScroll() so that it does not overload QAbstractItemView::setAutoscroll()
Change-Id: I09fb54f9b31c3025efddce6a4e709baaf107702d
Reviewed-on: https://code.wireshark.org/review/12225
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
(cherry picked from commit 56625dd4562d89f711ab68caa8cf849509b0970f)
Reviewed-on: https://code.wireshark.org/review/12230
Diffstat (limited to 'ui/qt/packet_list.h')
-rw-r--r-- | ui/qt/packet_list.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/packet_list.h b/ui/qt/packet_list.h index f0786a5ecc..5a863d2db9 100644 --- a/ui/qt/packet_list.h +++ b/ui/qt/packet_list.h @@ -71,7 +71,7 @@ public: QString packetComment(); void setPacketComment(QString new_comment); QString allPacketComments(); - void setAutoScroll(bool enabled = true); + void setVerticalAutoScroll(bool enabled = true); void setCaptureInProgress(bool in_progress = false) { capture_in_progress_ = in_progress; tail_at_end_ = in_progress; } void captureFileReadFinished(); |