MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / CopyTextToClipboard

Method CopyTextToClipboard

pcsx2-qt/QtHost.cpp:1717–1725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1715}
1716
1717bool Host::CopyTextToClipboard(const std::string_view text)
1718{
1719 QtHost::RunOnUIThread([text = QtUtils::StringViewToQString(text)]() {
1720 QClipboard* clipboard = QGuiApplication::clipboard();
1721 if (clipboard)
1722 clipboard->setText(text);
1723 });
1724 return true;
1725}
1726
1727std::string Host::GetTextFromClipboard()
1728{

Callers

nothing calls this directly

Calls 1

StringViewToQStringFunction · 0.85

Tested by

no test coverage detected