diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.ui b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.ui index c42cb118b6..66a15b0fbc 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.ui +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.ui @@ -270,6 +270,12 @@ 0 + + + 0 + 5 + + Rotation around the x-axis Note: The placement is expressed in local space of object being attached. @@ -296,6 +302,12 @@ Note: The placement is expressed in local space of object being attached.0 + + + 0 + 5 + + Rotation around the y-axis Note: The placement is expressed in local space of object being attached. @@ -322,6 +334,12 @@ Note: The placement is expressed in local space of object being attached.0 + + + 0 + 5 + + Rotation around the z-axis Note: The placement is expressed in local space of object being attached. diff --git a/src/Mod/Part/Gui/TaskAttacher.cpp b/src/Mod/Part/Gui/TaskAttacher.cpp index 8a5540f7f5..a4e988b5a6 100644 --- a/src/Mod/Part/Gui/TaskAttacher.cpp +++ b/src/Mod/Part/Gui/TaskAttacher.cpp @@ -215,6 +215,12 @@ TaskAttacher::TaskAttacher(Gui::ViewProviderDocumentObject *ViewProvider,QWidget Gui::Document* document = Gui::Application::Instance->getDocument(ViewProvider->getObject()->getDocument()); connectDelObject = document->signalDeletedObject.connect(bnd1); connectDelDocument = document->signalDeleteDocument.connect(bnd2); + + // set tooltips because the ones in the .ui file are not taken for QuantitySpinBoxes (see bug https://freecadweb.org/tracker/view.php?id=4059) + // FIXME: remove this once the bug is fixed + ui->attachmentOffsetRoll->setTooltipLE(QString::fromUtf8("Rotation around the x-axis\nNote: The placement is expressed in local coordinate system\nof object being attached.")); + ui->attachmentOffsetPitch->setTooltipLE(QString::fromUtf8("Rotation around the y-axis\nNote: The placement is expressed in local coordinate system\nof object being attached.")); + ui->attachmentOffsetYaw->setTooltipLE(QString::fromUtf8("Rotation around the z-axis\nNote: The placement is expressed in local coordinate system\nof object being attached.")); } TaskAttacher::~TaskAttacher()