| 1715 | } |
| 1716 | |
| 1717 | bool 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 | |
| 1727 | std::string Host::GetTextFromClipboard() |
| 1728 | { |
nothing calls this directly
no test coverage detected