Created
September 17, 2018 04:39
-
-
Save penk/b3b54b060f6378b4d000412f8f346fc6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QString QQuickLoader::errorString() const | |
{ | |
Q_D(const QQuickLoader); | |
QString ret; | |
if(d->component->errors().isEmpty()) | |
return ret; | |
if (d->component && d->component->isError()) { | |
const QList<QQmlError> errorList = d->component->errors(); | |
for (const QQmlError &e : errorList) { | |
ret += e.url().toString() + QLatin1Char(':') + | |
QString::number(e.line()) + QLatin1Char(' ') + | |
e.description() + QLatin1Char('\n'); | |
} | |
} | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment