MCPcopy Create free account
hub / github.com/deskflow/deskflow / copyVersionText

Method copyVersionText

src/lib/gui/dialogs/AboutDialog.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void AboutDialog::copyVersionText() const
50{
51 QString infoString = QStringLiteral("%1: %2 (%3)\nQt: %4\nSystem: %5")
52 .arg(kAppName, kVersion, kVersionGitSha, qVersion(), QSysInfo::prettyProductName());
53#ifdef Q_OS_LINUX
54 infoString.append(QStringLiteral("\nSession: %1 (%2)")
55 .arg(qEnvironmentVariable("XDG_CURRENT_DESKTOP"), qEnvironmentVariable("XDG_SESSION_TYPE")));
56#endif
57 QGuiApplication::clipboard()->setText(infoString);
58}
59
60AboutDialog::~AboutDialog() = default;

Callers

nothing calls this directly

Calls 1

setTextMethod · 0.80

Tested by

no test coverage detected