aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-09-10 11:31:43 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2018-09-10 19:50:55 +0000
commit400f748b04da6dfaf26404aa6dabfec11b3c7607 (patch)
tree336fd7a178076c6590f56454246ef3bdb4b34160 /epan/prefs.c
parent87e97a8e74ede780c4d9c02701f2984bb4723f6d (diff)
Qt: Add some window title variables
Add some new variables to be used in custom window title. %F = file path of the capture file %S = a conditional separator (" - ") that only shows when surrounded by variables with values or static text Change-Id: I20a60a3018cc86236f4991030eadb7f51681cc32 Reviewed-on: https://code.wireshark.org/review/29534 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index eb35b2bbd1..a02cac10a6 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -3266,11 +3266,19 @@ prefs_register_modules(void)
&prefs.gui_update_interval);
register_string_like_preference(gui_module, "window_title", "Custom window title",
- "Custom window title to be appended to the existing title\n%P = profile name\n%V = version info",
+ "Custom window title to be appended to the existing title\n"
+ "%F = file path of the capture file\n"
+ "%P = profile name\n"
+ "%S = a conditional separator (\" - \") that only shows when surrounded by variables with values or static text\n"
+ "%V = version info",
&prefs.gui_window_title, PREF_STRING, NULL, TRUE);
register_string_like_preference(gui_module, "prepend_window_title", "Custom window title prefix",
- "Custom window title to be prepended to the existing title\n%P = profile name\n%V = version info",
+ "Custom window title to be prepended to the existing title\n"
+ "%F = file path of the capture file\n"
+ "%P = profile name\n"
+ "%S = a conditional separator (\" - \") that only shows when surrounded by variables with values or static text\n"
+ "%V = version info",
&prefs.gui_prepend_window_title, PREF_STRING, NULL, TRUE);
register_string_like_preference(gui_module, "start_title", "Custom start page title",