diff options
author | Roland Knall <rknall@gmail.com> | 2019-06-12 16:35:29 -0700 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2019-06-13 15:11:10 +0000 |
commit | 5ae259c4954a1894992b31de8661b0562ba87115 (patch) | |
tree | 86dc71c707be5e0523fc320d306aa5f0b2c7d284 /ui/preference_utils.h | |
parent | 36f99fd6f986a36ee3cef4acd90c9994cbad0b4e (diff) |
Qt: Allow dropping fields to add columns and indicate width
Allows for dropping fields on the columns to add them as well as indicate
width while dragging the columns
Change-Id: Ic98ae431886e5eb2ebd9ba50390742995bf22d5a
Reviewed-on: https://code.wireshark.org/review/33573
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/preference_utils.h')
-rw-r--r-- | ui/preference_utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/preference_utils.h b/ui/preference_utils.h index 4ffc30be58..f2905bad25 100644 --- a/ui/preference_utils.h +++ b/ui/preference_utils.h @@ -71,6 +71,22 @@ gint column_prefs_add_custom(gint fmt, const gchar *title, const gchar *custom_field, gint custom_occurrence); +/** Add a custom column at the given position + * + * @param fmt column format + * @param title column title + * @param custom_field column custom field + * @param custom_occurrence custom occurrence + * @param position the intended position of the insert + * + * @return The index of the inserted column + */ +gint +column_prefs_add_custom_with_position(gint fmt, const gchar *title, + const gchar *custom_fields, + gint custom_occurrence, + guint position); + /** Remove a column. * * @param col_link Column list entry |