PD: [skip ci] PolarPattern: Support 1 occurrence

This is analogous to support 1 occurrence of the linear pattern feature: 81a5ec5e55
This commit is contained in:
wmayer
2021-03-01 13:58:02 +01:00
parent f481c47123
commit 356db441a6
2 changed files with 15 additions and 11 deletions

View File

@@ -121,6 +121,9 @@ void TaskPolarPatternParameters::setupUI()
connect(ui->listWidgetFeatures->model(),
SIGNAL(rowsMoved(QModelIndex, int, int, QModelIndex, int)), this, SLOT(indexesMoved()));
ui->spinOccurrences->setMaximum(INT_MAX);
ui->spinOccurrences->setMinimum(1);
updateViewTimer = new QTimer(this);
updateViewTimer->setSingleShot(true);
updateViewTimer->setInterval(getUpdateViewTimeout());
@@ -155,8 +158,6 @@ void TaskPolarPatternParameters::setupUI()
// ---------------------
ui->polarAngle->bind(pcPolarPattern->Angle);
ui->spinOccurrences->setMaximum(INT_MAX);
ui->spinOccurrences->setMinimum(2);
ui->spinOccurrences->bind(pcPolarPattern->Occurrences);
ui->comboAxis->setEnabled(true);