summaryrefslogtreecommitdiff
path: root/ui/qt/qt_ui_utils.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-08 11:33:16 -0700
committerGerald Combs <gerald@wireshark.org>2015-06-08 19:51:34 +0000
commit2d863b9782f19e0821cacfbf6c7ab17fa1183317 (patch)
treea402d791b8411dc33135b5e78b296b2158b2fcfb /ui/qt/qt_ui_utils.h
parent2533889f3c0116d64f374eab5677876c5366d134 (diff)
downloadwireshark-2d863b9782f19e0821cacfbf6c7ab17fa1183317.tar.gz
Add TapParameterDialog.
Split StatsTreeDialog into StatsTreeDialog and TapParameterDialog (its base class). This more closely matches the GTK+ UI and paves the way for more statistics dialogs. Change-Id: I2630385534e829d99724673ade372fcb33200d07 Reviewed-on: https://code.wireshark.org/review/8842 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/qt_ui_utils.h')
-rw-r--r--ui/qt/qt_ui_utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/qt/qt_ui_utils.h b/ui/qt/qt_ui_utils.h
index 66b198e9d8..8043234fc0 100644
--- a/ui/qt/qt_ui_utils.h
+++ b/ui/qt/qt_ui_utils.h
@@ -69,6 +69,15 @@ gchar *qstring_strdup(QString q_string);
*/
QString gchar_free_to_qstring(gchar *glib_string);
+/** Transfer ownership of a GLib character string to a newly constructed QByteArray
+ *
+ * @param glib_string A string allocated with g_malloc() or NULL. Will be
+ * freed.
+ *
+ * @return A QByteArray instance created from the input string.
+ */
+QByteArray gstring_free_to_qbytearray(GString *glib_gstring);
+
/** Convert an address to a QString using address_to_str().
*
* @param address A pointer to an address.