MeasureGui: Improve measure task wording (#13857)

* MeasureGui: Add remaining labels for translation

* MeasureGui: Improve wording for annotation and close buttons
This commit is contained in:
hlorus
2024-05-13 17:45:09 +02:00
committed by GitHub
parent 1398ab67e4
commit c81776a418

View File

@@ -74,8 +74,8 @@ TaskMeasure::TaskMeasure()
// formLayout->setFieldGrowthPolicy(QFormLayout::FieldGrowthPolicy::ExpandingFieldsGrow);
formLayout->setFormAlignment(Qt::AlignCenter);
formLayout->addRow(QString::fromLatin1("Mode:"), modeSwitch);
formLayout->addRow(QString::fromLatin1("Result:"), valueResult);
formLayout->addRow(tr("Mode:"), modeSwitch);
formLayout->addRow(tr("Result:"), valueResult);
layout->addLayout(formLayout);
Content.emplace_back(taskbox);
@@ -104,15 +104,15 @@ TaskMeasure::~TaskMeasure(){
void TaskMeasure::modifyStandardButtons(QDialogButtonBox* box) {
QPushButton* btn = box->button(QDialogButtonBox::Apply);
btn->setText(tr("Annotate"));
btn->setToolTip(tr("Press the Annotate button to add measurement to the document."));
btn->setText(tr("Save"));
btn->setToolTip(tr("Save the measurement in the active document."));
connect(btn, &QPushButton::released, this, &TaskMeasure::apply);
// Disable button by default
btn->setEnabled(false);
btn = box->button(QDialogButtonBox::Abort);
btn->setText(QString::fromLatin1("Close"));
btn->setToolTip(tr("Press the Close button to exit."));
btn->setText(tr("Close"));
btn->setToolTip(tr("Close the measurement task."));
// Connect reset button
btn = box->button(QDialogButtonBox::Reset);