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

Method numberSpinBoxDecimals2

tests/commonfrontend/widgets/SpinBoxTest.cpp:1047–1053  ·  view source on GitHub ↗

\brief SpinBoxTest::numberSpinBoxDecimals Check that application shows the correct value, even decimals is set to zero

Source from the content-addressed store, hash-verified

1045// \brief SpinBoxTest::numberSpinBoxDecimals
1046// Check that application shows the correct value, even decimals is set to zero
1047void SpinBoxTest::numberSpinBoxDecimals2() {
1048 NumberSpinBox sb;
1049 sb.setMinimum(-10);
1050 sb.setDecimals(0);
1051 sb.setValue(-1);
1052 QCOMPARE(sb.lineEdit()->text(), QStringLiteral("-1"));
1053}
1054
1055void SpinBoxTest::numberSpinBoxScrollingNegToPos() {
1056 NumberSpinBox sb;

Callers

nothing calls this directly

Calls 4

setMinimumMethod · 0.80
lineEditMethod · 0.80
setValueMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected