MCPcopy Create free account
hub / github.com/KDE/labplot / stepBy

Method stepBy

src/frontend/widgets/NumberSpinBox.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void NumberSpinBox::stepBy(int steps) {
112 // used when scrolling
113 Errors e = step(steps);
114 if (e == Errors::Min || e == Errors::Max)
115 setInvalid(Errors::NoError);
116 else if (e == Errors::NoError) {
117 setInvalid(e);
118 valueChanged();
119 } else
120 setInvalid(e);
121}
122
123void NumberSpinBox::increaseValue() {
124 stepBy(1);

Callers 1

Calls

no outgoing calls

Tested by 1