| 110 | } |
| 111 | |
| 112 | void Representer::edit(const TaskPtr &task) |
| 113 | { |
| 114 | if (!editor_) |
| 115 | editor_ = std::make_unique<ResultEditor>(manager_, models_, settings_); |
| 116 | |
| 117 | editor_->show(task); |
| 118 | |
| 119 | const auto cursor = QCursor::pos(); |
| 120 | const auto screen = QApplication::screenAt(cursor); |
| 121 | SOFT_ASSERT(screen, return ); |
| 122 | editor_->move(service::geometry::cornerAtPoint(cursor, editor_->size(), |
| 123 | screen->geometry())); |
| 124 | } |
| 125 | |
| 126 | bool Representer::eventFilter(QObject * /*watched*/, QEvent *event) |
| 127 | { |
nothing calls this directly
no test coverage detected