aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-12-24 11:01:07 +0100
committerJon Atack <jon@atack.com>2020-12-27 14:29:24 +0100
commit0d5613f9ded846aa20a95c757672e9560c664c4c (patch)
treea127c20f1c30cd730902b947d82549c6193a2815 /src/qt/guiutil.h
parentaf9103cc792e17f35249f1d4cb30f0d6958ceb75 (diff)
gui: create GUIUtil::NetworkToQString() utility function
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index d7bd124884..d7794b071a 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -7,6 +7,7 @@
#include <amount.h>
#include <fs.h>
+#include <netaddress.h>
#include <QEvent>
#include <QHeaderView>
@@ -224,6 +225,9 @@ namespace GUIUtil
/* Convert OS specific boost path to QString through UTF-8 */
QString boostPathToQString(const fs::path &path);
+ /** Convert enum Network to QString */
+ QString NetworkToQString(Network net);
+
/* Convert seconds into a QString with days, hours, mins, secs */
QString formatDurationStr(int secs);