summaryrefslogtreecommitdiffstats
path: root/tests/auto/qlcdnumber
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2009-11-06 10:37:33 (GMT)
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>2009-11-09 11:10:33 (GMT)
commit9e0c2d6f00cb1195bf7bc1eae34a6f8f9b43191f (patch)
tree2f24f0f0243ca547e942d8b641057e8b1cfeea22 /tests/auto/qlcdnumber
parent8d4f3c94411d21f0b7d851b56f951ad54d64340f (diff)
downloadQt-9e0c2d6f00cb1195bf7bc1eae34a6f8f9b43191f.zip
Qt-9e0c2d6f00cb1195bf7bc1eae34a6f8f9b43191f.tar.gz
Qt-9e0c2d6f00cb1195bf7bc1eae34a6f8f9b43191f.tar.bz2
API review: Rename numDigits() and setNumDigits()
QLCDNumber doesn't follow the API convention of *Count and set*Count(). Introduce properly named functions, and obsolete the old ones. Reviewed-by: Andreas Aardal Hanssen
Diffstat (limited to 'tests/auto/qlcdnumber')
-rw-r--r--tests/auto/qlcdnumber/tst_qlcdnumber.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/qlcdnumber/tst_qlcdnumber.cpp b/tests/auto/qlcdnumber/tst_qlcdnumber.cpp
index c18ce24..3f52c70 100644
--- a/tests/auto/qlcdnumber/tst_qlcdnumber.cpp
+++ b/tests/auto/qlcdnumber/tst_qlcdnumber.cpp
@@ -74,14 +74,14 @@ tst_QLCDNumber::~tst_QLCDNumber()
void tst_QLCDNumber::getSetCheck()
{
QLCDNumber obj1;
- // int QLCDNumber::numDigits()
- // void QLCDNumber::setNumDigits(int)
- obj1.setNumDigits(0);
- QCOMPARE(0, obj1.numDigits());
- obj1.setNumDigits(INT_MIN);
- QCOMPARE(0, obj1.numDigits()); // Range<0, 99>
- obj1.setNumDigits(INT_MAX);
- QCOMPARE(99, obj1.numDigits()); // Range<0, 99>
+ // int QLCDNumber::digitCount()
+ // void QLCDNumber::setDigitCount(int)
+ obj1.setDigitCount(0);
+ QCOMPARE(0, obj1.digitCount());
+ obj1.setDigitCount(INT_MIN);
+ QCOMPARE(0, obj1.digitCount()); // Range<0, 99>
+ obj1.setDigitCount(INT_MAX);
+ QCOMPARE(99, obj1.digitCount()); // Range<0, 99>
}
QTEST_MAIN(tst_QLCDNumber)