Skip to content
Snippets Groups Projects
Commit c08cb5d5 authored by Provot Bertrand's avatar Provot Bertrand
Browse files

fixed PixelOp interface

parent 00192f33
No related branches found
No related tags found
No related merge requests found
......@@ -157,8 +157,10 @@ void PointOp::operator()(const ImageWindow* currentWnd, const vector<const Image
QCheckBox* colorBox = new QCheckBox(qApp->translate("PointOp", "Explode colors"));
offsetBox->setAutoExclusive(false);
scalingBox->setAutoExclusive(false);
offsetBox->setEnabled(doubleButton->isChecked());
scalingBox->setEnabled(doubleButton->isChecked());
offsetBox->setEnabled(!doubleButton->isChecked());
scalingBox->setEnabled(!doubleButton->isChecked());
offsetBox->setChecked(doubleButton->isChecked());
scalingBox->setChecked(doubleButton->isChecked());
colorBox->setAutoExclusive(false);
optLayout->addWidget(offsetBox);
optLayout->addWidget(scalingBox);
......@@ -227,8 +229,10 @@ void PointOp::operator()(const ImageWindow* currentWnd, const vector<const Image
}
QObject::connect(colorBox, SIGNAL(toggled(bool)), pixelWidget, SLOT(setHidden(bool)));
QObject::connect(colorBox, SIGNAL(toggled(bool)), colorWidget, SLOT(setVisible(bool)));
QObject::connect(doubleButton, SIGNAL(toggled(bool)), offsetBox, SLOT(setEnabled(bool)));
QObject::connect(doubleButton, SIGNAL(toggled(bool)), scalingBox, SLOT(setEnabled(bool)));
QObject::connect(uCharButton, SIGNAL(toggled(bool)), offsetBox, SLOT(setEnabled(bool)));
QObject::connect(uCharButton, SIGNAL(toggled(bool)), scalingBox, SLOT(setEnabled(bool)));
QObject::connect(doubleButton, SIGNAL(toggled(bool)), offsetBox, SLOT(setChecked(bool)));
QObject::connect(doubleButton, SIGNAL(toggled(bool)), scalingBox, SLOT(setChecked(bool)));
layout->setSizeConstraint(QLayout::SetFixedSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment