diff options
author | Jim Young <jyoung@gsu.edu> | 2021-04-18 20:28:21 -0400 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-04-21 08:36:27 +0000 |
commit | d42042fcbbb0f22fa3ec5bcfb6849e1c73679f90 (patch) | |
tree | 308802d0cca5b33415567ca37fdc4ebc9d2bb2c3 /ui/qt/layout_preferences_frame.h | |
parent | 6d809554a471827dde7b109eb89f06726086899f (diff) |
Qt: Add checkbox for enabling/disabling packet-list hover_style
At times the presence of the packet-list hover_style colorization can make
it difficult to determine the state of the packet directly under the mouse
cursor. This forces the user to move the mouse cursor away from the
packet-list row to reveal the next colorization state. The packet-list row
colorization style precedence, from highest to lowest, is: hover_style,
Selected, Ignored, Marked and then coloring rules.
This patch adds a new 'Packet List settings:' checkbox option 'Enable
mouse-over colorization'. By default the supporting preference
`gui.packet_list_hover_style.enabled` will be enabled (TRUE). When this
checkbox is disabled, the packet-list hover_style (mouse-over)
colorization will not be used.
Diffstat (limited to 'ui/qt/layout_preferences_frame.h')
-rw-r--r-- | ui/qt/layout_preferences_frame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/layout_preferences_frame.h b/ui/qt/layout_preferences_frame.h index 342f3cf5b4..0ffb319aca 100644 --- a/ui/qt/layout_preferences_frame.h +++ b/ui/qt/layout_preferences_frame.h @@ -39,6 +39,7 @@ private: pref_t *pref_layout_content_3_; pref_t *pref_packet_list_separator_; pref_t *pref_packet_header_column_definition_; + pref_t *pref_packet_list_hover_style_; pref_t *pref_show_selected_packet_; pref_t *pref_show_file_load_time_; @@ -69,6 +70,7 @@ private slots: void on_restoreButtonBox_clicked(QAbstractButton *button); void on_packetListSeparatorCheckBox_toggled(bool checked); void on_packetListHeaderShowColumnDefinition_toggled(bool checked); + void on_packetListHoverStyleCheckbox_toggled(bool checked); void on_statusBarShowSelectedPacketCheckBox_toggled(bool checked); void on_statusBarShowFileLoadTimeCheckBox_toggled(bool checked); }; |