| 43 | } |
| 44 | |
| 45 | void 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 | |
| 60 | void Representer::represent(const TaskPtr &task) |
| 61 | { |
no test coverage detected