| 39 | } |
| 40 | |
| 41 | void GrPluginContext::PostDelayTask(std::function<void()>&& task, int delay) { |
| 42 | QTimer::singleShot(delay, [t = std::move(task)]() { |
| 43 | t(); |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | void GrPluginContext::StartTimer(int millis, std::function<void()>&& cbk) { |
| 48 | if (timer_) { |