Mercurial > hg > svgui
comparison widgets/PluginParameterBox.cpp @ 103:5064eeb1c76f
* #1492875: Increase fractional digits of plugin parameter values
author | Chris Cannam |
---|---|
date | Thu, 15 Jun 2006 11:08:22 +0000 |
parents | 967193b6c7aa |
children | 53b9c7656798 |
comparison
equal
deleted
inserted
replaced
102:8ce53683d0d7 | 103:5064eeb1c76f |
---|---|
168 spinbox->setMinimum(min); | 168 spinbox->setMinimum(min); |
169 spinbox->setMaximum(max); | 169 spinbox->setMaximum(max); |
170 spinbox->setSuffix(QString(" %1").arg(unit)); | 170 spinbox->setSuffix(QString(" %1").arg(unit)); |
171 spinbox->setSingleStep(qtz); | 171 spinbox->setSingleStep(qtz); |
172 spinbox->setValue(value); | 172 spinbox->setValue(value); |
173 spinbox->setDecimals(4); | |
173 connect(spinbox, SIGNAL(valueChanged(double)), | 174 connect(spinbox, SIGNAL(valueChanged(double)), |
174 this, SLOT(spinBoxChanged(double))); | 175 this, SLOT(spinBoxChanged(double))); |
175 m_layout->addWidget(spinbox, i + offset, 2); | 176 m_layout->addWidget(spinbox, i + offset, 2); |
176 rec.dial = dial; | 177 rec.dial = dial; |
177 rec.spin = spinbox; | 178 rec.spin = spinbox; |