22 , m_currentDimensions(0)
29 connect(this->colorAsMask, SIGNAL(toggled(
bool)), this->preserveAlpha, SLOT(setEnabled(
bool)));
42 for (
int i = 0; i < this->dimensionSpin->maximum(); i++) {
45 dimRankLayout->addWidget(bp);
53 spacingWidget->setSpacing(
false, cfg->getDouble(
KEY_SPACING));
54 if (!cfg->getString(
KEY_NAME).isEmpty()) {
55 nameLineEdit->setText(cfg->getString(
KEY_NAME));
57 colorAsMask->setChecked(cfg->getBool(
KEY_MASK));
64 for (
int i = 0; i < dimensionSpin->maximum(); ++i) {
65 if ((item = dimRankLayout->itemAt(i)) != 0) {
76 cfg->setProperty(
KEY_SPACING, spacingWidget->spacing());
77 cfg->setProperty(
KEY_NAME, nameLineEdit->text());
78 cfg->setProperty(
KEY_MASK, colorAsMask->isChecked());
85 for (
int i = 0; i < dimensionSpin->maximum(); ++i) {
86 if ((item = dimRankLayout->itemAt(i)) != 0) {
139 int maxDim = this->dimensionSpin->maximum();
144 for (
int i = 0; i < maxDim; ++i) {
145 if ((item = dimRankLayout->itemAt(i)) != 0) {
147 rankSum += bp.at(i)->rankSpinBox.value();
153 QVectorIterator<BrushPipeSelectionModeHelper*> bpIterator(bp);
156 currentBrushHelper = bpIterator.next();
158 if (currentBrushHelper != callerBrushHelper) {
159 int currentValue = currentBrushHelper->
rankSpinBox.value();
160 currentBrushHelper->
rankSpinBox.setValue(currentValue - 1);
161 rankSum -= currentValue;