| 200 | } |
| 201 | |
| 202 | void Shape::menu(QMenu& menu, FileTree::View* /*tv*/) const |
| 203 | { |
| 204 | menu.addAction(QIcon::fromTheme("edit-delete"), QObject::tr("&Delete object \"%1\"").arg(name()), [this] { |
| 205 | App::fileModel()->removeRow(m_node->row(), m_node->index().parent()); |
| 206 | }); |
| 207 | auto action = menu.addAction(QIcon::fromTheme("hint"), QObject::tr("&Visible \"%1\"").arg(name()), this, &GraphicsItem::setVisible); |
| 208 | action->setCheckable(true); |
| 209 | action->setChecked(isVisible()); |
| 210 | // action->connect(action, &QAction::toggled ); |
| 211 | } |
| 212 | |
| 213 | // write to project |
| 214 | void Shape::write_(QDataStream& stream) const |
nothing calls this directly
no test coverage detected