summaryrefslogtreecommitdiffstats
path: root/src/declarative/extra/qmlnumberformatter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/extra/qmlnumberformatter.cpp')
-rw-r--r--src/declarative/extra/qmlnumberformatter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/declarative/extra/qmlnumberformatter.cpp b/src/declarative/extra/qmlnumberformatter.cpp
index 1818c36..e937905 100644
--- a/src/declarative/extra/qmlnumberformatter.cpp
+++ b/src/declarative/extra/qmlnumberformatter.cpp
@@ -53,7 +53,7 @@ class QmlNumberFormatterPrivate : public QObjectPrivate
{
Q_DECLARE_PUBLIC(QmlNumberFormatter)
public:
- QmlNumberFormatterPrivate() : locale(QLocale::system()), number(0), classComplete(true) {}
+ QmlNumberFormatterPrivate() : locale(QLocale::system()), number(0), componentComplete(true) {}
void updateText();
@@ -62,7 +62,7 @@ public:
QNumberFormat numberFormat;
QString text;
qreal number;
- bool classComplete;
+ bool componentComplete;
};
/*!
\qmlclass NumberFormatter
@@ -186,7 +186,7 @@ void QmlNumberFormatter::setFormat(const QString &format)
void QmlNumberFormatterPrivate::updateText()
{
Q_Q(QmlNumberFormatter);
- if (!classComplete)
+ if (!componentComplete)
return;
QNumberFormat tempFormat;
@@ -201,13 +201,13 @@ void QmlNumberFormatterPrivate::updateText()
void QmlNumberFormatter::classBegin()
{
Q_D(QmlNumberFormatter);
- d->classComplete = false;
+ d->componentComplete = false;
}
-void QmlNumberFormatter::classComplete()
+void QmlNumberFormatter::componentComplete()
{
Q_D(QmlNumberFormatter);
- d->classComplete = true;
+ d->componentComplete = true;
d->updateText();
}
QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,NumberFormatter,QmlNumberFormatter);