Fix error: 'currentIndexChanged' is deprecated: Use currentTextChanged()
instead. --HG-- branch : develop
This commit is contained in:
parent
2563cd8161
commit
503e31aee0
|
@ -2039,13 +2039,13 @@ void TMainWindow::InitWindow()
|
||||||
labelGradationHeights = new QLabel(tr("Height:"));
|
labelGradationHeights = new QLabel(tr("Height:"));
|
||||||
gradationHeights = SetGradationList(labelGradationHeights, listHeights);
|
gradationHeights = SetGradationList(labelGradationHeights, listHeights);
|
||||||
SetDefaultHeight(static_cast<int>(data->height()));
|
SetDefaultHeight(static_cast<int>(data->height()));
|
||||||
connect(gradationHeights, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(gradationHeights, &QComboBox::currentTextChanged,
|
||||||
this, &TMainWindow::ChangedHeight);
|
this, &TMainWindow::ChangedHeight);
|
||||||
|
|
||||||
labelGradationSizes = new QLabel(tr("Size:"));
|
labelGradationSizes = new QLabel(tr("Size:"));
|
||||||
gradationSizes = SetGradationList(labelGradationSizes, listSizes);
|
gradationSizes = SetGradationList(labelGradationSizes, listSizes);
|
||||||
SetDefaultSize(static_cast<int>(data->size()));
|
SetDefaultSize(static_cast<int>(data->size()));
|
||||||
connect(gradationSizes, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(gradationSizes, &QComboBox::currentTextChanged,
|
||||||
this, &TMainWindow::ChangedSize);
|
this, &TMainWindow::ChangedSize);
|
||||||
|
|
||||||
connect(ui->doubleSpinBoxBaseValue, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
|
connect(ui->doubleSpinBoxBaseValue, QOverload<double>::of(&QDoubleSpinBox::valueChanged),
|
||||||
|
|
|
@ -1939,7 +1939,7 @@ void MainWindow::ToolBarOption()
|
||||||
// set default height
|
// set default height
|
||||||
SetDefaultHeight();
|
SetDefaultHeight();
|
||||||
|
|
||||||
connect(gradationHeights.data(), QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(gradationHeights.data(), &QComboBox::currentTextChanged,
|
||||||
this, &MainWindow::ChangedHeight);
|
this, &MainWindow::ChangedHeight);
|
||||||
|
|
||||||
gradationSizesLabel = new QLabel(tr("Size:"), this);
|
gradationSizesLabel = new QLabel(tr("Size:"), this);
|
||||||
|
@ -1948,7 +1948,7 @@ void MainWindow::ToolBarOption()
|
||||||
// set default size
|
// set default size
|
||||||
SetDefaultSize();
|
SetDefaultSize();
|
||||||
|
|
||||||
connect(gradationSizes.data(), QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(gradationSizes.data(), &QComboBox::currentTextChanged,
|
||||||
this, &MainWindow::ChangedSize);
|
this, &MainWindow::ChangedSize);
|
||||||
|
|
||||||
ui->toolBarOption->addSeparator();
|
ui->toolBarOption->addSeparator();
|
||||||
|
|
|
@ -104,9 +104,9 @@ DialogAlongLine::DialogAlongLine(const VContainer *data, quint32 toolId, QWidget
|
||||||
timerFormula->start(formulaTimerTimeout);
|
timerFormula->start(formulaTimerTimeout);
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogAlongLine::DeployFormulaTextEdit);
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogAlongLine::DeployFormulaTextEdit);
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogAlongLine::PointChanged);
|
this, &DialogAlongLine::PointChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogAlongLine::PointChanged);
|
this, &DialogAlongLine::PointChanged);
|
||||||
|
|
||||||
vis = new VisToolAlongLine(data);
|
vis = new VisToolAlongLine(data);
|
||||||
|
|
|
@ -98,11 +98,11 @@ DialogBisector::DialogBisector(const VContainer *data, quint32 toolId, QWidget *
|
||||||
timerFormula->start(formulaTimerTimeout);
|
timerFormula->start(formulaTimerTimeout);
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogBisector::DeployFormulaTextEdit);
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogBisector::DeployFormulaTextEdit);
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogBisector::PointNameChanged);
|
this, &DialogBisector::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogBisector::PointNameChanged);
|
this, &DialogBisector::PointNameChanged);
|
||||||
connect(ui->comboBoxThirdPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxThirdPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogBisector::PointNameChanged);
|
this, &DialogBisector::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolBisector(data);
|
vis = new VisToolBisector(data);
|
||||||
|
|
|
@ -63,13 +63,13 @@ DialogCubicBezier::DialogCubicBezier(const VContainer *data, quint32 toolId, QWi
|
||||||
|
|
||||||
ui->doubleSpinBoxApproximationScale->setMaximum(maxCurveApproximationScale);
|
ui->doubleSpinBoxApproximationScale->setMaximum(maxCurveApproximationScale);
|
||||||
|
|
||||||
connect(ui->comboBoxP1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogCubicBezier::PointNameChanged);
|
this, &DialogCubicBezier::PointNameChanged);
|
||||||
connect(ui->comboBoxP2, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP2, &QComboBox::currentTextChanged,
|
||||||
this, &DialogCubicBezier::PointNameChanged);
|
this, &DialogCubicBezier::PointNameChanged);
|
||||||
connect(ui->comboBoxP3, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP3, &QComboBox::currentTextChanged,
|
||||||
this, &DialogCubicBezier::PointNameChanged);
|
this, &DialogCubicBezier::PointNameChanged);
|
||||||
connect(ui->comboBoxP4, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP4, &QComboBox::currentTextChanged,
|
||||||
this, &DialogCubicBezier::PointNameChanged);
|
this, &DialogCubicBezier::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolCubicBezier(data);
|
vis = new VisToolCubicBezier(data);
|
||||||
|
|
|
@ -80,7 +80,7 @@ DialogFlippingByAxis::DialogFlippingByAxis(const VContainer *data, quint32 toolI
|
||||||
ui->comboBoxOriginPoint->setCurrentIndex(-1);
|
ui->comboBoxOriginPoint->setCurrentIndex(-1);
|
||||||
|
|
||||||
connect(ui->lineEditSuffix, &QLineEdit::textChanged, this, &DialogFlippingByAxis::SuffixChanged);
|
connect(ui->lineEditSuffix, &QLineEdit::textChanged, this, &DialogFlippingByAxis::SuffixChanged);
|
||||||
connect(ui->comboBoxOriginPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxOriginPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogFlippingByAxis::PointChanged);
|
this, &DialogFlippingByAxis::PointChanged);
|
||||||
|
|
||||||
vis = new VisToolFlippingByAxis(data);
|
vis = new VisToolFlippingByAxis(data);
|
||||||
|
|
|
@ -78,9 +78,9 @@ DialogFlippingByLine::DialogFlippingByLine(const VContainer *data, quint32 toolI
|
||||||
FillComboBoxPoints(ui->comboBoxSecondLinePoint);
|
FillComboBoxPoints(ui->comboBoxSecondLinePoint);
|
||||||
|
|
||||||
connect(ui->lineEditSuffix, &QLineEdit::textChanged, this, &DialogFlippingByLine::SuffixChanged);
|
connect(ui->lineEditSuffix, &QLineEdit::textChanged, this, &DialogFlippingByLine::SuffixChanged);
|
||||||
connect(ui->comboBoxFirstLinePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstLinePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogFlippingByLine::PointChanged);
|
this, &DialogFlippingByLine::PointChanged);
|
||||||
connect(ui->comboBoxSecondLinePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondLinePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogFlippingByLine::PointChanged);
|
this, &DialogFlippingByLine::PointChanged);
|
||||||
|
|
||||||
vis = new VisToolFlippingByLine(data);
|
vis = new VisToolFlippingByLine(data);
|
||||||
|
|
|
@ -82,11 +82,11 @@ DialogHeight::DialogHeight(const VContainer *data, quint32 toolId, QWidget *pare
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxBasePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxBasePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogHeight::PointNameChanged);
|
this, &DialogHeight::PointNameChanged);
|
||||||
connect(ui->comboBoxP1Line, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP1Line, &QComboBox::currentTextChanged,
|
||||||
this, &DialogHeight::PointNameChanged);
|
this, &DialogHeight::PointNameChanged);
|
||||||
connect(ui->comboBoxP2Line, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP2Line, &QComboBox::currentTextChanged,
|
||||||
this, &DialogHeight::PointNameChanged);
|
this, &DialogHeight::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolHeight(data);
|
vis = new VisToolHeight(data);
|
||||||
|
|
|
@ -66,9 +66,9 @@ DialogLine::DialogLine(const VContainer *data, quint32 toolId, QWidget *parent)
|
||||||
|
|
||||||
number = 0;
|
number = 0;
|
||||||
|
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLine::PointNameChanged);
|
this, &DialogLine::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLine::PointNameChanged);
|
this, &DialogLine::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolLine(data);
|
vis = new VisToolLine(data);
|
||||||
|
|
|
@ -82,13 +82,13 @@ DialogLineIntersect::DialogLineIntersect(const VContainer *data, quint32 toolId,
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxP1Line1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP1Line1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersect::PointNameChanged);
|
this, &DialogLineIntersect::PointNameChanged);
|
||||||
connect(ui->comboBoxP2Line1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP2Line1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersect::PointNameChanged);
|
this, &DialogLineIntersect::PointNameChanged);
|
||||||
connect(ui->comboBoxP1Line2, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP1Line2, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersect::PointNameChanged);
|
this, &DialogLineIntersect::PointNameChanged);
|
||||||
connect(ui->comboBoxP2Line2, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP2Line2, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersect::PointNameChanged);
|
this, &DialogLineIntersect::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolLineIntersect(data);
|
vis = new VisToolLineIntersect(data);
|
||||||
|
|
|
@ -101,11 +101,11 @@ DialogLineIntersectAxis::DialogLineIntersectAxis(const VContainer *data, quint32
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLengthAngle, &QPushButton::clicked, this, &DialogLineIntersectAxis::DeployAngleTextEdit);
|
connect(ui->pushButtonGrowLengthAngle, &QPushButton::clicked, this, &DialogLineIntersectAxis::DeployAngleTextEdit);
|
||||||
connect(timerFormula, &QTimer::timeout, this, &DialogLineIntersectAxis::EvalAngle);
|
connect(timerFormula, &QTimer::timeout, this, &DialogLineIntersectAxis::EvalAngle);
|
||||||
connect(ui->comboBoxFirstLinePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstLinePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersectAxis::PointNameChanged);
|
this, &DialogLineIntersectAxis::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondLinePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondLinePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersectAxis::PointNameChanged);
|
this, &DialogLineIntersectAxis::PointNameChanged);
|
||||||
connect(ui->comboBoxAxisPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxAxisPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogLineIntersectAxis::PointNameChanged);
|
this, &DialogLineIntersectAxis::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolLineIntersectAxis(data);
|
vis = new VisToolLineIntersectAxis(data);
|
||||||
|
|
|
@ -108,9 +108,9 @@ DialogNormal::DialogNormal(const VContainer *data, quint32 toolId, QWidget *pare
|
||||||
timerFormula->start(formulaTimerTimeout);
|
timerFormula->start(formulaTimerTimeout);
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogNormal::DeployFormulaTextEdit);
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogNormal::DeployFormulaTextEdit);
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogNormal::PointNameChanged);
|
this, &DialogNormal::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogNormal::PointNameChanged);
|
this, &DialogNormal::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolNormal(data);
|
vis = new VisToolNormal(data);
|
||||||
|
|
|
@ -88,7 +88,7 @@ DialogPointFromCircleAndTangent::DialogPointFromCircleAndTangent(const VContaine
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxCircleCenter, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxCircleCenter, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointFromCircleAndTangent::PointChanged);
|
this, &DialogPointFromCircleAndTangent::PointChanged);
|
||||||
|
|
||||||
connect(ui->toolButtonExprRadius, &QPushButton::clicked, this,
|
connect(ui->toolButtonExprRadius, &QPushButton::clicked, this,
|
||||||
|
|
|
@ -96,11 +96,11 @@ DialogPointOfContact::DialogPointOfContact(const VContainer *data, quint32 toolI
|
||||||
timerFormula->start(formulaTimerTimeout);
|
timerFormula->start(formulaTimerTimeout);
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogPointOfContact::DeployFormulaTextEdit);
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogPointOfContact::DeployFormulaTextEdit);
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfContact::PointNameChanged);
|
this, &DialogPointOfContact::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfContact::PointNameChanged);
|
this, &DialogPointOfContact::PointNameChanged);
|
||||||
connect(ui->comboBoxCenter, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxCenter, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfContact::PointNameChanged);
|
this, &DialogPointOfContact::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolPointOfContact(data);
|
vis = new VisToolPointOfContact(data);
|
||||||
|
|
|
@ -71,9 +71,9 @@ DialogPointOfIntersection::DialogPointOfIntersection(const VContainer *data, qui
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersection::PointNameChanged);
|
this, &DialogPointOfIntersection::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersection::PointNameChanged);
|
this, &DialogPointOfIntersection::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolPointOfIntersection(data);
|
vis = new VisToolPointOfIntersection(data);
|
||||||
|
|
|
@ -65,9 +65,9 @@ DialogPointOfIntersectionArcs::DialogPointOfIntersectionArcs(const VContainer *d
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxArc1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxArc1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersectionArcs::ArcChanged);
|
this, &DialogPointOfIntersectionArcs::ArcChanged);
|
||||||
connect(ui->comboBoxArc1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxArc1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersectionArcs::ArcChanged);
|
this, &DialogPointOfIntersectionArcs::ArcChanged);
|
||||||
|
|
||||||
vis = new VisToolPointOfIntersectionArcs(data);
|
vis = new VisToolPointOfIntersectionArcs(data);
|
||||||
|
|
|
@ -97,9 +97,9 @@ DialogPointOfIntersectionCircles::DialogPointOfIntersectionCircles(const VContai
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxCircle1Center, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxCircle1Center, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersectionCircles::PointChanged);
|
this, &DialogPointOfIntersectionCircles::PointChanged);
|
||||||
connect(ui->comboBoxCircle2Center, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxCircle2Center, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersectionCircles::PointChanged);
|
this, &DialogPointOfIntersectionCircles::PointChanged);
|
||||||
|
|
||||||
connect(ui->toolButtonExprCircle1Radius, &QPushButton::clicked, this,
|
connect(ui->toolButtonExprCircle1Radius, &QPushButton::clicked, this,
|
||||||
|
|
|
@ -68,9 +68,9 @@ DialogPointOfIntersectionCurves::DialogPointOfIntersectionCurves(const VContaine
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxCurve1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxCurve1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersectionCurves::CurveChanged);
|
this, &DialogPointOfIntersectionCurves::CurveChanged);
|
||||||
connect(ui->comboBoxCurve2, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxCurve2, &QComboBox::currentTextChanged,
|
||||||
this, &DialogPointOfIntersectionCurves::CurveChanged);
|
this, &DialogPointOfIntersectionCurves::CurveChanged);
|
||||||
|
|
||||||
vis = new VisToolPointOfIntersectionCurves(data);
|
vis = new VisToolPointOfIntersectionCurves(data);
|
||||||
|
|
|
@ -99,7 +99,7 @@ DialogRotation::DialogRotation(const VContainer *data, quint32 toolId, QWidget *
|
||||||
timerAngle->start(formulaTimerTimeout);
|
timerAngle->start(formulaTimerTimeout);
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogRotation::DeployAngleTextEdit);
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogRotation::DeployAngleTextEdit);
|
||||||
connect(ui->comboBoxOriginPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxOriginPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogRotation::PointChanged);
|
this, &DialogRotation::PointChanged);
|
||||||
|
|
||||||
vis = new VisToolRotation(data);
|
vis = new VisToolRotation(data);
|
||||||
|
|
|
@ -98,11 +98,11 @@ DialogShoulderPoint::DialogShoulderPoint(const VContainer *data, quint32 toolId,
|
||||||
timerFormula->start(formulaTimerTimeout);
|
timerFormula->start(formulaTimerTimeout);
|
||||||
});
|
});
|
||||||
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogShoulderPoint::DeployFormulaTextEdit);
|
connect(ui->pushButtonGrowLength, &QPushButton::clicked, this, &DialogShoulderPoint::DeployFormulaTextEdit);
|
||||||
connect(ui->comboBoxP1Line, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP1Line, &QComboBox::currentTextChanged,
|
||||||
this, &DialogShoulderPoint::PointNameChanged);
|
this, &DialogShoulderPoint::PointNameChanged);
|
||||||
connect(ui->comboBoxP2Line, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP2Line, &QComboBox::currentTextChanged,
|
||||||
this, &DialogShoulderPoint::PointNameChanged);
|
this, &DialogShoulderPoint::PointNameChanged);
|
||||||
connect(ui->comboBoxP3, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP3, &QComboBox::currentTextChanged,
|
||||||
this, &DialogShoulderPoint::PointNameChanged);
|
this, &DialogShoulderPoint::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolShoulderPoint(data);
|
vis = new VisToolShoulderPoint(data);
|
||||||
|
|
|
@ -113,9 +113,9 @@ DialogSpline::DialogSpline(const VContainer *data, quint32 toolId, QWidget *pare
|
||||||
|
|
||||||
ui->doubleSpinBoxApproximationScale->setMaximum(maxCurveApproximationScale);
|
ui->doubleSpinBoxApproximationScale->setMaximum(maxCurveApproximationScale);
|
||||||
|
|
||||||
connect(ui->comboBoxP1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSpline::PointNameChanged);
|
this, &DialogSpline::PointNameChanged);
|
||||||
connect(ui->comboBoxP4, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxP4, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSpline::PointNameChanged);
|
this, &DialogSpline::PointNameChanged);
|
||||||
|
|
||||||
connect(ui->toolButtonExprAngle1, &QPushButton::clicked, this, &DialogSpline::FXAngle1);
|
connect(ui->toolButtonExprAngle1, &QPushButton::clicked, this, &DialogSpline::FXAngle1);
|
||||||
|
|
|
@ -73,13 +73,13 @@ DialogTriangle::DialogTriangle(const VContainer *data, quint32 toolId, QWidget *
|
||||||
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
CheckPointLabel(this, ui->lineEditNamePoint, ui->labelEditNamePoint, pointName, this->data, flagName);
|
||||||
CheckState();
|
CheckState();
|
||||||
});
|
});
|
||||||
connect(ui->comboBoxFirstPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTriangle::PointNameChanged);
|
this, &DialogTriangle::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTriangle::PointNameChanged);
|
this, &DialogTriangle::PointNameChanged);
|
||||||
connect(ui->comboBoxAxisP1, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxAxisP1, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTriangle::PointNameChanged);
|
this, &DialogTriangle::PointNameChanged);
|
||||||
connect(ui->comboBoxAxisP2, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxAxisP2, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTriangle::PointNameChanged);
|
this, &DialogTriangle::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolTriangle(data);
|
vis = new VisToolTriangle(data);
|
||||||
|
|
|
@ -77,15 +77,15 @@ DialogTrueDarts::DialogTrueDarts(const VContainer *data, quint32 toolId, QWidget
|
||||||
|
|
||||||
connect(ui->lineEditFirstNewDartPoint, &QLineEdit::textChanged, this, &DialogTrueDarts::NameDartPoint1Changed);
|
connect(ui->lineEditFirstNewDartPoint, &QLineEdit::textChanged, this, &DialogTrueDarts::NameDartPoint1Changed);
|
||||||
connect(ui->lineEditSecondNewDartPoint, &QLineEdit::textChanged, this, &DialogTrueDarts::NameDartPoint2Changed);
|
connect(ui->lineEditSecondNewDartPoint, &QLineEdit::textChanged, this, &DialogTrueDarts::NameDartPoint2Changed);
|
||||||
connect(ui->comboBoxFirstBasePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstBasePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTrueDarts::PointNameChanged);
|
this, &DialogTrueDarts::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondBasePoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondBasePoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTrueDarts::PointNameChanged);
|
this, &DialogTrueDarts::PointNameChanged);
|
||||||
connect(ui->comboBoxFirstDartPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxFirstDartPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTrueDarts::PointNameChanged);
|
this, &DialogTrueDarts::PointNameChanged);
|
||||||
connect(ui->comboBoxSecondDartPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxSecondDartPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTrueDarts::PointNameChanged);
|
this, &DialogTrueDarts::PointNameChanged);
|
||||||
connect(ui->comboBoxThirdDartPoint, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(ui->comboBoxThirdDartPoint, &QComboBox::currentTextChanged,
|
||||||
this, &DialogTrueDarts::PointNameChanged);
|
this, &DialogTrueDarts::PointNameChanged);
|
||||||
|
|
||||||
vis = new VisToolTrueDarts(data);
|
vis = new VisToolTrueDarts(data);
|
||||||
|
|
|
@ -3067,9 +3067,9 @@ void DialogSeamAllowance::InitLabelsTab()
|
||||||
InitPinPoint(uiTabLabels->comboBoxDLTopLeftPin);
|
InitPinPoint(uiTabLabels->comboBoxDLTopLeftPin);
|
||||||
InitPinPoint(uiTabLabels->comboBoxDLBottomRightPin);
|
InitPinPoint(uiTabLabels->comboBoxDLBottomRightPin);
|
||||||
|
|
||||||
connect(uiTabLabels->comboBoxDLTopLeftPin, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(uiTabLabels->comboBoxDLTopLeftPin, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSeamAllowance::DetailPinPointChanged);
|
this, &DialogSeamAllowance::DetailPinPointChanged);
|
||||||
connect(uiTabLabels->comboBoxDLBottomRightPin, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(uiTabLabels->comboBoxDLBottomRightPin, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSeamAllowance::DetailPinPointChanged);
|
this, &DialogSeamAllowance::DetailPinPointChanged);
|
||||||
|
|
||||||
connect(uiTabLabels->pushButtonDLWidth, &QPushButton::clicked, this, &DialogSeamAllowance::EditDLFormula);
|
connect(uiTabLabels->pushButtonDLWidth, &QPushButton::clicked, this, &DialogSeamAllowance::EditDLFormula);
|
||||||
|
@ -3098,9 +3098,9 @@ void DialogSeamAllowance::InitLabelsTab()
|
||||||
InitPinPoint(uiTabLabels->comboBoxPLTopLeftPin);
|
InitPinPoint(uiTabLabels->comboBoxPLTopLeftPin);
|
||||||
InitPinPoint(uiTabLabels->comboBoxPLBottomRightPin);
|
InitPinPoint(uiTabLabels->comboBoxPLBottomRightPin);
|
||||||
|
|
||||||
connect(uiTabLabels->comboBoxPLTopLeftPin, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(uiTabLabels->comboBoxPLTopLeftPin, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSeamAllowance::PatternPinPointChanged);
|
this, &DialogSeamAllowance::PatternPinPointChanged);
|
||||||
connect(uiTabLabels->comboBoxPLBottomRightPin, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(uiTabLabels->comboBoxPLBottomRightPin, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSeamAllowance::PatternPinPointChanged);
|
this, &DialogSeamAllowance::PatternPinPointChanged);
|
||||||
|
|
||||||
connect(uiTabLabels->pushButtonPLWidth, &QPushButton::clicked, this, &DialogSeamAllowance::EditPLFormula);
|
connect(uiTabLabels->pushButtonPLWidth, &QPushButton::clicked, this, &DialogSeamAllowance::EditPLFormula);
|
||||||
|
@ -3150,9 +3150,9 @@ void DialogSeamAllowance::InitGrainlineTab()
|
||||||
InitPinPoint(uiTabGrainline->comboBoxGrainlineTopPin);
|
InitPinPoint(uiTabGrainline->comboBoxGrainlineTopPin);
|
||||||
InitPinPoint(uiTabGrainline->comboBoxGrainlineBottomPin);
|
InitPinPoint(uiTabGrainline->comboBoxGrainlineBottomPin);
|
||||||
|
|
||||||
connect(uiTabGrainline->comboBoxGrainlineTopPin, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(uiTabGrainline->comboBoxGrainlineTopPin, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSeamAllowance::GrainlinePinPointChanged);
|
this, &DialogSeamAllowance::GrainlinePinPointChanged);
|
||||||
connect(uiTabGrainline->comboBoxGrainlineBottomPin, QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
|
connect(uiTabGrainline->comboBoxGrainlineBottomPin, &QComboBox::currentTextChanged,
|
||||||
this, &DialogSeamAllowance::GrainlinePinPointChanged);
|
this, &DialogSeamAllowance::GrainlinePinPointChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user