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

Method edit

src/represent/representer.cpp:112–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void 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
126bool Representer::eventFilter(QObject * /*watched*/, QEvent *event)
127{

Callers

nothing calls this directly

Calls 3

cornerAtPointFunction · 0.85
showMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected