diff --git a/src/meshlab/stdpardialog.cpp b/src/meshlab/stdpardialog.cpp index 2f6457a6f..f8646e232 100644 --- a/src/meshlab/stdpardialog.cpp +++ b/src/meshlab/stdpardialog.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.22 2007/12/11 23:56:40 cignoni +better resizing of dialogs + Revision 1.21 2007/11/30 07:19:09 cignoni moved generic dialog to the meshlab base @@ -233,9 +236,9 @@ void StdParFrame::loadFrameContent(FilterParameterSet &curParSet) if(layout()) delete layout(); QGridLayout *gridLayout = new QGridLayout(this); setLayout(gridLayout); - gridLayout->setColumnStretch(0,0); - gridLayout->setColumnStretch(1,0); - gridLayout->setColumnStretch(2,1); +// gridLayout->setColumnStretch(0,1); +// gridLayout->setColumnStretch(1,1); +// gridLayout->setColumnStretch(2,2); QCheckBox *qcb; QLineEdit *qle; @@ -250,10 +253,13 @@ void StdParFrame::loadFrameContent(FilterParameterSet &curParSet) for(int i = 0; i < parList.count(); i++) { const FilterParameter &fpi=parList.at(i); - ql = new QLabel(""+fpi.fieldToolTip +"",this); + ql = new QLabel(""+fpi.fieldToolTip +"",this); ql->setTextFormat(Qt::RichText); ql->setWordWrap(true); ql->setVisible(false); + ql->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred); + ql->setMinimumWidth(250); + ql->setMaximumWidth(QWIDGETSIZE_MAX); gridLayout->addWidget(ql,i,3,1,1,Qt::AlignTop); helpList.push_back(ql); diff --git a/src/meshlabplugins/editslice/slicedialog.ui b/src/meshlabplugins/editslice/slicedialog.ui index ef6a6681c..6851e3f51 100644 --- a/src/meshlabplugins/editslice/slicedialog.ui +++ b/src/meshlabplugins/editslice/slicedialog.ui @@ -4,6 +4,14 @@ Qt::NonModal + + + 0 + 0 + 375 + 338 + + 5 @@ -19,143 +27,30 @@ Qt::LeftToRight - - - - 20 - 20 - 365 - 359 - - - - QFrame::StyledPanel - - - QFrame::Raised - - - - 9 - - - 6 - - - - - Number of planes - - - - 9 - - - 6 - - - - - - 5 - 5 - 0 - 0 - - - - - 0 - 15 - - - - - 50 - 16777215 - - - - QAbstractSpinBox::PlusMinus - - - 1 - - - - - - - Qt::Horizontal - - - - 0 - 0 - - - - - - - - - - - Distance between planes - - - - 9 - - - 6 - - + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + Number of planes + - - 0 - - - 6 - - - - - 5 - 5 - 0 - 0 - + + + QAbstractSpinBox::PlusMinus - - Restore Default - - - - - - - - 5 - 5 - 0 - 0 - - - - 1 - - - QLineEdit::Normal - - + 1 - - Qt::AlignHCenter - @@ -165,22 +60,67 @@ - 40 - 20 + 0 + 0 - - + + + + + + Distance between planes + - - 0 - - - 6 - + + + + + + + 0 + 0 + + + + Restore Default + + + + + + + 1 + + + QLineEdit::Normal + + + 1 + + + Qt::AlignHCenter + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + @@ -190,21 +130,13 @@ false - - 5 - 0 + 0 0 - - - 200 - 0 - - - 6 + SizeHorCursor 1 @@ -229,134 +161,64 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - - 0 - - - 6 - - - - - - 0 - - - 0 - - - - - - 5 - 5 - 0 - 0 - - - - Single file - - - - - - - - 5 - 5 - 0 - 0 - - - - Multi file - - - true - - - - - - - Qt::Vertical - - - - 20 - 0 - - - - - - - Qt::Horizontal - - - - 121 - 68 - - - - - - - - 0 - - - 6 - + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Single file + + + + + + + Multi file + + + true + + + + + + - Qt::Vertical + Qt::Horizontal - 20 - 40 + 121 + 68 - - - 5 - 1 - 0 - 0 - - Export Polyline... @@ -368,9 +230,9 @@ - - - + + +