Qt: Add html_escape to qt_ui_utils.
authorGerald Combs <gerald@wireshark.org>
Thu, 29 Sep 2016 18:25:52 +0000 (11:25 -0700)
committerRoland Knall <rknall@gmail.com>
Thu, 29 Sep 2016 19:41:25 +0000 (19:41 +0000)
commit1f633cfc840de148e928d121a613237ea5dafb0a
treeaa62ef33e7fc762faaccc27fc9d95b40b1f788d8
parent5f69295c47a9a72ae27d8404860ab8170591cb1d
Qt: Add html_escape to qt_ui_utils.

Add an html_escape convenience function, which escapes HTML
metacharacters using Qt::escape on Qt4 and QString::toHtmlEscaped on
Qt5. Use it where we were previously using #if QT_VERSION and calling
the API-specific functions.

Change-Id: Ifda3e9634a37fc00bdb46e08d5711f934692fef5
Reviewed-on: https://code.wireshark.org/review/17984
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
ui/qt/capture_file_properties_dialog.cpp
ui/qt/module_preferences_scroll_area.cpp
ui/qt/preference_editor_frame.cpp
ui/qt/qt_ui_utils.cpp
ui/qt/qt_ui_utils.h
ui/qt/sequence_dialog.cpp
ui/qt/tap_parameter_dialog.cpp