2 #include "ui_linepatternpathpart.h"
20 ui->value->setValue(std::fabs(value));
25 ui->value->setDisabled(
true);
35 if (typeIndex != -1) {
36 ui->type->setCurrentIndex(typeIndex);
39 connect(
ui->type, SIGNAL(currentIndexChanged(
const QString&)),
this, SLOT(
onTypeChanged(
const QString&)));
40 connect(
ui->value, SIGNAL(valueChanged(
double)),
this, SLOT(
onValueChanged(
double)));
58 return ui->value->value();
63 ui->value->setValue(0);
64 ui->value->setDisabled(
true);
67 ui->value->setValue(1);
68 ui->value->setDisabled(
false);
Model used to construct line pattern path.
double value()
Return length.
Ui::LinePatternPathPart * ui
PathType type()
Return type (plain, space or dot)
LinePatternPathPart(QWidget *parent=0)
Create empty model.
void onTypeChanged(const QString &value)
void onValueChanged(double value)