diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-05 03:24:25 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-05 03:24:25 (GMT) |
commit | c76d98da76fd687d2953f0026b16bca3c7fcf485 (patch) | |
tree | eef6eb053421d53d9ee4935401ca5cefea635745 /tools/qml/qmlruntime.h | |
parent | fde6b4cc1e720ae655ccac9d7f83c7d2dc4badc4 (diff) | |
download | Qt-c76d98da76fd687d2953f0026b16bca3c7fcf485.zip Qt-c76d98da76fd687d2953f0026b16bca3c7fcf485.tar.gz Qt-c76d98da76fd687d2953f0026b16bca3c7fcf485.tar.bz2 |
Allow translations without extra command-line args, and document both.
Diffstat (limited to 'tools/qml/qmlruntime.h')
-rw-r--r-- | tools/qml/qmlruntime.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qml/qmlruntime.h b/tools/qml/qmlruntime.h index 2a0a07d..0b23303 100644 --- a/tools/qml/qmlruntime.h +++ b/tools/qml/qmlruntime.h @@ -59,6 +59,7 @@ class QDeclarativeTester; class QNetworkReply; class QNetworkCookieJar; class NetworkAccessManagerFactory; +class QTranslator; class QDeclarativeViewer #if defined(Q_OS_SYMBIAN) @@ -192,6 +193,11 @@ private: NetworkAccessManagerFactory *namFactory; bool useQmlFileBrowser; + + QTranslator *translator; + void loadTranslationFile(const QString& directory); + + void loadDummyDataFiles(const QString& directory); }; Q_DECLARE_OPERATORS_FOR_FLAGS(QDeclarativeViewer::ScriptOptions) |