summaryrefslogtreecommitdiffstats
path: root/src/plugins
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 /src/plugins
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 'src/plugins')
-rw-r--r--src/plugins/accessible/widgets/simplewidgets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/accessible/widgets/simplewidgets.cpp b/src/plugins/accessible/widgets/simplewidgets.cpp
index 1d801e4..014d487 100644
--- a/src/plugins/accessible/widgets/simplewidgets.cpp
+++ b/src/plugins/accessible/widgets/simplewidgets.cpp
@@ -528,7 +528,7 @@ QString QAccessibleDisplay::text(Text t, int child) const
#ifndef QT_NO_LCDNUMBER
} else if (qobject_cast<QLCDNumber*>(object())) {
QLCDNumber *l = qobject_cast<QLCDNumber*>(object());
- if (l->numDigits())
+ if (l->digitCount())
str = QString::number(l->value());
else
str = QString::number(l->intValue());