diff --git a/src/app/dialogs/tools/dialogarc.cpp b/src/app/dialogs/tools/dialogarc.cpp index 92a78cf4d..726a05d27 100644 --- a/src/app/dialogs/tools/dialogarc.cpp +++ b/src/app/dialogs/tools/dialogarc.cpp @@ -263,28 +263,6 @@ void DialogArc::closeEvent(QCloseEvent *event) DialogTool::closeEvent(event); } -//--------------------------------------------------------------------------------------------------------------------- -/** - * @brief ValChenged show description angles of lines - * @param row number of row - */ -void DialogArc::ValChenged(int row) -{ - if (ui->listWidget->count() == 0) - { - return; - } - QListWidgetItem *item = ui->listWidget->item( row ); - if (ui->radioButtonAngleLine->isChecked()) - { - qreal angle = *data->GetVariable(item->text())->GetValue(); - QString desc = QString("%1(%2) - %3").arg(item->text()).arg(angle).arg(tr("Value of angle of line.")); - ui->labelDescription->setText(desc); - return; - } - DialogTool::ValChenged(row); -} - //--------------------------------------------------------------------------------------------------------------------- /** * @brief PutRadius put variable into formula of radius diff --git a/src/app/dialogs/tools/dialogarc.h b/src/app/dialogs/tools/dialogarc.h index 40de32e27..35c5e46db 100644 --- a/src/app/dialogs/tools/dialogarc.h +++ b/src/app/dialogs/tools/dialogarc.h @@ -70,7 +70,6 @@ public slots: void DeployFormulaTextEdit(); void DeployF1TextEdit(); void DeployF2TextEdit(); - virtual void ValChenged(int row); void PutRadius(); void PutF1(); void PutF2(); diff --git a/src/app/dialogs/tools/dialogpointofcontact.cpp b/src/app/dialogs/tools/dialogpointofcontact.cpp index d01773ffb..94046df76 100644 --- a/src/app/dialogs/tools/dialogpointofcontact.cpp +++ b/src/app/dialogs/tools/dialogpointofcontact.cpp @@ -62,7 +62,6 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, const quint32 connect(ui->toolButtonPutHere, &QPushButton::clicked, this, &DialogPointOfContact::PutHere); connect(ui->listWidget, &QListWidget::itemDoubleClicked, this, &DialogPointOfContact::PutVal); - connect(ui->listWidget, &QListWidget::currentRowChanged, this, &DialogPointOfContact::ValChenged); if (qApp->patternType() == MeasurementsType::Standard) { diff --git a/src/app/dialogs/tools/dialogtool.cpp b/src/app/dialogs/tools/dialogtool.cpp index 0f433af34..4605dff65 100644 --- a/src/app/dialogs/tools/dialogtool.cpp +++ b/src/app/dialogs/tools/dialogtool.cpp @@ -1020,6 +1020,7 @@ void DialogTool::ValChenged(int row) SCASSERT(radioButtonLengthCurve != nullptr); if (listWidget->count() == 0) { + labelDescription->setText(""); return; } QListWidgetItem *item = listWidget->item( row ); @@ -1078,7 +1079,6 @@ void DialogTool::ValChenged(int row) labelDescription->setText(desc); return; } - if (radioButtonAngleLine->isChecked()) { QString desc = QString("%1(%2) - %3").arg(item->text()) @@ -1158,6 +1158,7 @@ void DialogTool::ShowVariable(const QMap var) SCASSERT(checkBoxHideEmpty != nullptr); listWidget->blockSignals(true); listWidget->clear(); + labelDescription->setText(""); QMapIterator iMap(var); while (iMap.hasNext())