aboutsummaryrefslogtreecommitdiff
path: root/src/qt/guiutil.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-12-24 12:35:37 +0100
committerJon Atack <jon@atack.com>2021-01-08 15:24:31 +0100
commit7e2beab2d28d8ab039d9554744a11592a7d7dc76 (patch)
tree5542229036810594b9a47362fee45f687ddc8d60 /src/qt/guiutil.h
parent9158d6f34153dc937e109d0e7486e956a26f20aa (diff)
gui: create GUIUtil::ConnectionTypeToQString utility function
Diffstat (limited to 'src/qt/guiutil.h')
-rw-r--r--src/qt/guiutil.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index 4bef13efb5..c471b888f7 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -7,17 +7,18 @@
#include <amount.h>
#include <fs.h>
+#include <net.h>
#include <netaddress.h>
#include <QEvent>
#include <QHeaderView>
#include <QItemDelegate>
+#include <QLabel>
#include <QMessageBox>
#include <QObject>
#include <QProgressBar>
#include <QString>
#include <QTableView>
-#include <QLabel>
class QValidatedLineEdit;
class SendCoinsRecipient;
@@ -228,6 +229,9 @@ namespace GUIUtil
/** Convert enum Network to QString */
QString NetworkToQString(Network net);
+ /** Convert enum ConnectionType to QString */
+ QString ConnectionTypeToQString(ConnectionType conn_type);
+
/** Convert seconds into a QString with days, hours, mins, secs */
QString formatDurationStr(int secs);