diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-21 22:41:59 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-21 22:41:59 (GMT) |
commit | 2a24201fcfac0ca57afefad836d62308262dafdf (patch) | |
tree | 989f5335627c2b908d9b8b325f62f3934e0e1866 /src/declarative/qml/qmlcomponent.cpp | |
parent | 4dc3189aea1c619828abdf87e553587c656ede63 (diff) | |
download | Qt-2a24201fcfac0ca57afefad836d62308262dafdf.zip Qt-2a24201fcfac0ca57afefad836d62308262dafdf.tar.gz Qt-2a24201fcfac0ca57afefad836d62308262dafdf.tar.bz2 |
Move errorsString to QmlBindableComponent because it's for use in script
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index 0fdba64..2092ef5 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -390,30 +390,6 @@ QList<QmlError> QmlComponent::errors() const } /*! - Return the list of errors that occured during the last compile or create - operation, as a single string. An empty string is returned if isError() - is not set. - - This function is similar to errors(), except more useful when called from - QML. C++ code should usually use errors(). - - \sa errors() -*/ -QString QmlComponent::errorsString() const -{ - Q_D(const QmlComponent); - QString ret; - if(!isError()) - return ret; - foreach(const QmlError &e, d->errors) { - ret += e.url().toString() + QLatin1String(":") + - QString::number(e.line()) + QLatin1String(" ") + - e.description() + QLatin1String("\n"); - } - return ret; -} - -/*! Return the component URL. This is the URL passed to either the constructor, or the loadUrl() or setData() methods. */ |