summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qlcdnumber.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-11-13 16:03:27 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-11-13 16:03:27 (GMT)
commit149b13bdec3802a80e86a0de77837d7e9cbab8af (patch)
tree41a76edb43874b11d36f53c745a3e40393feb52f /src/gui/widgets/qlcdnumber.cpp
parentcf44101e03eb33caa7c37fbd8023c2948b7f0249 (diff)
parent0c52573b646d8f139f37c26c954d03061ddb485a (diff)
downloadQt-149b13bdec3802a80e86a0de77837d7e9cbab8af.zip
Qt-149b13bdec3802a80e86a0de77837d7e9cbab8af.tar.gz
Qt-149b13bdec3802a80e86a0de77837d7e9cbab8af.tar.bz2
Merge branch '4.6'
Diffstat (limited to 'src/gui/widgets/qlcdnumber.cpp')
-rw-r--r--src/gui/widgets/qlcdnumber.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/widgets/qlcdnumber.cpp b/src/gui/widgets/qlcdnumber.cpp
index f33a98f..69c52cf 100644
--- a/src/gui/widgets/qlcdnumber.cpp
+++ b/src/gui/widgets/qlcdnumber.cpp
@@ -441,10 +441,10 @@ QLCDNumber::~QLCDNumber()
/*!
- \obsolete
+ \deprecated
\property QLCDNumber::numDigits
\brief the current number of digits displayed
- \sa setDigitCount
+ \sa digitCount
*/
void QLCDNumber::setNumDigits(int numDigits)
@@ -466,6 +466,10 @@ void QLCDNumber::setNumDigits(int numDigits)
\sa smallDecimalPoint
*/
+/*!
+ Sets the current number of digits to \a numDigits. Must
+ be in the range 0..99.
+ */
void QLCDNumber::setDigitCount(int numDigits)
{
Q_D(QLCDNumber);
@@ -483,7 +487,7 @@ void QLCDNumber::setDigitCount(int numDigits)
d->ndigits = numDigits;
d->digitStr.fill(QLatin1Char(' '), d->ndigits);
d->points.fill(0, d->ndigits);
- d->digitStr[d->ndigits - 1] = QLatin1Char('0'); // "0" is the default number
+ d->digitStr[d->ndigits - 1] = QLatin1Char('0'); // "0" is the default number
} else {
bool doDisplay = d->ndigits == 0;
if (numDigits == d->ndigits) // no change
@@ -521,6 +525,9 @@ int QLCDNumber::numDigits() const
return d->ndigits;
}
+/*!
+ Returns the current number of digits.
+ */
int QLCDNumber::digitCount() const
{
Q_D(const QLCDNumber);