MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / argToQString

Function argToQString

cli/application.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54inline QString argToQString(const char *arg, int size = -1)
55{
56#if !defined(PLATFORM_WINDOWS)
57 return QString::fromLocal8Bit(arg, size);
58#else
59 // under Windows args are converted to UTF-8
60 return QString::fromUtf8(arg, size);
61#endif
62}
63
64Application::Application()
65 : m_expectedResponse(0)

Callers 3

loadConfigMethod · 0.85
requestRescanMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected