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

Fixed Interface bug on threshold

parent 2872a48d
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ ThresholdDialog::ThresholdDialog(const GrayscaleImage* image, bool converted) :
_preview = new ImageWidget(this, _image);
_preview->setFixedSize(256*_preview->pixmap().width()/_preview->pixmap().height(), 256);
layout->setColumnMinimumWidth(0,256);
layout->setColumnMinimumWidth(0,256*_preview->pixmap().width()/_preview->pixmap().height());
layout->addWidget(_preview,0,0,0,0,Qt::AlignTop);
Vboxlayout->addWidget(plot);
layout->setRowMinimumHeight(0,256);
......@@ -172,7 +172,7 @@ ThresholdDialog::ThresholdDialog(const GrayscaleImage* image, bool converted) :
layout->addWidget(_previewBox,1,0,1,0,Qt::AlignTop);
//layout->setSizeConstraint(QLayout::SetFixedSize);
layout->setSizeConstraint(QLayout::SetMinimumSize);
QPushButton *okButton = new QPushButton(tr("Validate"), this);
okButton->setDefault(true);
......
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