MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / clipboardLast

Method clipboardLast

src/represent/representer.cpp:45–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void Representer::clipboardLast()
46{
47 if (settings_.resultShowType == ResultMode::Tooltip) {
48 SOFT_ASSERT(lastTooltipTask_, return );
49 clipboardText(lastTooltipTask_);
50 return;
51 }
52
53 SOFT_ASSERT(!widgets_.empty(), return );
54 SOFT_ASSERT(widgets_.front()->task(), return );
55 clipboardText(widgets_.front()->task());
56 tray_.showInformation(
57 QObject::tr("The last result was copied to the clipboard."));
58}
59
60void Representer::represent(const TaskPtr &task)
61{

Callers 1

copyLastToClipboardMethod · 0.80

Calls 2

showInformationMethod · 0.80
taskMethod · 0.45

Tested by

no test coverage detected