PD: Translate attachment task title

Eliminate default title, which is untranslatable.
This commit is contained in:
Chris Hennes
2024-03-03 20:46:12 -06:00
committed by Yorik van Havre
parent b0fab6ec79
commit 8a6bc53dd6
2 changed files with 4 additions and 4 deletions

View File

@@ -1059,7 +1059,7 @@ TaskDlgAttacher::TaskDlgAttacher(Gui::ViewProviderDocumentObject *ViewProvider,
setDocumentName(ViewProvider->getDocument()->getDocument()->getName());
if(createBox) {
parameter = new TaskAttacher(ViewProvider);
parameter = new TaskAttacher(ViewProvider, nullptr, QString(), tr("Attachment"));
Content.push_back(parameter);
}
}

View File

@@ -56,9 +56,9 @@ public:
using VisibilityFunction = std::function<void (bool, const std::string &, Gui::ViewProviderDocumentObject*,
App::DocumentObject *, const std::string&)>;
explicit TaskAttacher(Gui::ViewProviderDocumentObject *ViewProvider, QWidget *parent = nullptr,
QString picture = QString(),
QString text = QString::fromLatin1("Attachment"), VisibilityFunction func = 0);
explicit TaskAttacher(Gui::ViewProviderDocumentObject *ViewProvider, QWidget *parent,
QString picture,
QString text, VisibilityFunction func = 0);
~TaskAttacher() override;
bool getFlip() const;