MCPcopy Create free account
hub / github.com/ElementsProject/elements / NetworkToQString

Function NetworkToQString

src/qt/guiutil.cpp:687–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687QString NetworkToQString(Network net)
688{
689 switch (net) {
690 case NET_UNROUTABLE: return QObject::tr("Unroutable");
691 case NET_IPV4: return "IPv4";
692 case NET_IPV6: return "IPv6";
693 case NET_ONION: return "Onion";
694 case NET_I2P: return "I2P";
695 case NET_CJDNS: return "CJDNS";
696 case NET_INTERNAL: return QObject::tr("Internal");
697 case NET_MAX: assert(false);
698 } // no default case, so the compiler can warn about missing cases
699 assert(false);
700}
701
702QString ConnectionTypeToQString(ConnectionType conn_type, bool prepend_direction)
703{

Callers 2

dataMethod · 0.85
updateDetailWidgetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected