diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-03-04 09:45:13 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-04 15:22:58 +0100 |
commit | 588da94cce7ee0d9e03908fd5be211a5b629511c (patch) | |
tree | 70f9077e90e3254979280860373bc511397d78e3 /src/qml/qml/qqmlglobal_p.h | |
parent | 94d003c59b346c078e4aa8233c29c2c2c3467e3b (diff) |
Combine the source file, line and column number triplet in a common structure
This avoids unnecessary function calls when all of the three pieces need
to be retrieved from a QQmlBoundSignalExpression.
Change-Id: Ibcd498c907ea723baf6439cf32ca5fc704f204b5
Reviewed-by: Ulf Hermann <ulf.hermann@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlglobal_p.h')
-rw-r--r-- | src/qml/qml/qqmlglobal_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlglobal_p.h b/src/qml/qml/qqmlglobal_p.h index eca13e8fb8..8a17c81895 100644 --- a/src/qml/qml/qqmlglobal_p.h +++ b/src/qml/qml/qqmlglobal_p.h @@ -368,6 +368,16 @@ public: QStringList args; }; +struct QQmlSourceLocation +{ + QQmlSourceLocation() : line(0), column(0) {} + QQmlSourceLocation(const QString &sourceFile, quint16 line, quint16 column) + : sourceFile(sourceFile), line(line), column(column) {} + QString sourceFile; + quint16 line; + quint16 column; +}; + QT_END_NAMESPACE #endif // QQMLGLOBAL_H |