PD: [skip ci] PolarPattern: Support 1 occurrence

This is analogous to support 1 occurrence of the linear pattern feature: 74ea8353edc9
This commit is contained in:
wmayer
2021-03-01 13:58:02 +01:00
parent 88c6ed3d2d
commit 9120d4a7d9
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);