Bug #1948 ยป WSpinBox-bugfix.patch
src/Wt/WAbstractSpinBox.C | ||
---|---|---|
void WAbstractSpinBox::setPrefix(const WString& prefix)
|
||
{
|
||
prefix_ = prefix;
|
||
if (prefix_ != prefix) {
|
||
prefix_ = prefix;
|
||
setText(textFromValue());
|
||
}
|
||
}
|
||
void WAbstractSpinBox::setSuffix(const WString& suffix)
|
||
{
|
||
suffix_ = suffix;
|
||
if (suffix_ != suffix) {
|
||
suffix_ = suffix;
|
||
setText(textFromValue());
|
||
}
|
||
}
|
||
void WAbstractSpinBox::render(WFlags<RenderFlag> flags)
|
src/Wt/WSpinBox.C | ||
---|---|---|
value_(-1),
|
||
min_(0),
|
||
max_(99),
|
||
step_(1)
|
||
{
|
||
step_(1),
|
||
valueChanged_(this)
|
||
{
|
||
setValidator(createValidator());
|
||
setValue(0);
|
||
}
|