| 284 | } |
| 285 | |
| 286 | void ViewProviderDocumentObject::startDefaultEditMode() |
| 287 | { |
| 288 | Gui::Document* document = this->getDocument(); |
| 289 | if (document) { |
| 290 | QString text = QObject::tr("Edit %1").arg(QString::fromUtf8(getObject()->Label.getValue())); |
| 291 | document->openCommand(text.toUtf8()); // Command is opened here and individual dialogs have |
| 292 | // to close it |
| 293 | document->setEdit(this, ViewProvider::Default); |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | void ViewProviderDocumentObject::addDefaultAction(QMenu* menu, const QString& text) |
| 298 | { |
no test coverage detected