summaryrefslogtreecommitdiff
path: root/ui/qt/qt_ui_utils.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-03 08:39:14 -0800
committerGerald Combs <gerald@wireshark.org>2015-02-04 02:06:01 +0000
commit89e6f4c468eaa9b479d7c1a24ca83223f23f5c95 (patch)
tree61938de3b7f33a7c811c477b2b46e10eab053256 /ui/qt/qt_ui_utils.h
parent342ba909f910abf48825c069fd2c8b060d56f700 (diff)
downloadwireshark-89e6f4c468eaa9b479d7c1a24ca83223f23f5c95.tar.gz
Qt: Add the Protocol Hierarchy statistics dialog.
Change-Id: I6872e323daca4798c638d764873f54c4c0dc0006 Reviewed-on: https://code.wireshark.org/review/6934 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/qt_ui_utils.h b/ui/qt/qt_ui_utils.h
index 997e6c7dec..6eb9f70919 100644
--- a/ui/qt/qt_ui_utils.h
+++ b/ui/qt/qt_ui_utils.h
@@ -132,6 +132,14 @@ G_GNUC_PRINTF(3, 0);
const QString val_ext_to_qstring(const guint32 val, value_string_ext *vse, const char *fmt)
G_GNUC_PRINTF(3, 0);
+/** Convert bits per second value human-readable QString using format_size().
+ *
+ * @param val The value to convert to string.
+ *
+ * @return A QString representation of the data rate.
+ */
+const QString bits_s_to_qstring(const double val);
+
/**
* Round the current size of a font up to its next "smooth" size.
* If a smooth size can't be found the font is left unchanged.