aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlinstruction_p.h
diff options
context:
space:
mode:
authorTasuku Suzuki <stasuku@gmail.com>2012-11-23 04:21:49 +0900
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-26 18:47:20 +0100
commitcedaf867421f4c43a2da712f00e9626e64c8b250 (patch)
tree6337786b200cb9e198531456439719de5187827e /src/qml/qml/qqmlinstruction_p.h
parent31151e232eeeefa929796580a489b9bd851590bb (diff)
Enable mobule build with QT_NO_TRANSLATION
Change-Id: Id7aeef0d499f48ddc64b4ea3e4dc713db8458c38 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
Diffstat (limited to 'src/qml/qml/qqmlinstruction_p.h')
-rw-r--r--src/qml/qml/qqmlinstruction_p.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlinstruction_p.h b/src/qml/qml/qqmlinstruction_p.h
index 6c1e4ab298..62ed0d53d5 100644
--- a/src/qml/qml/qqmlinstruction_p.h
+++ b/src/qml/qml/qqmlinstruction_p.h
@@ -85,8 +85,8 @@ QT_BEGIN_NAMESPACE
F(StoreJSValueBool, storeBool) \
F(StoreStringList, storeString) \
F(StoreStringQList, storeString) \
- F(StoreTrString, storeTrString) \
- F(StoreTrIdString, storeTrIdString) \
+ F_TRANSLATION(F, StoreTrString, storeTrString) \
+ F_TRANSLATION(F, StoreTrIdString, storeTrIdString) \
F(StoreByteArray, storeByteArray) \
F(StoreUrl, storeUrl) \
F(StoreUrlQList, storeUrl) \
@@ -136,6 +136,12 @@ QT_BEGIN_NAMESPACE
F(FetchValueType, fetchValue) \
F(PopValueType, fetchValue)
+#ifndef QT_NO_TRANSLATION
+#define F_TRANSLATION(F, I, FMT) F(I, FMT)
+#else
+#define F_TRANSLATION(F, I, FMT)
+#endif
+
#if defined(Q_CC_GNU) && (!defined(Q_CC_INTEL) || __INTEL_COMPILER >= 1200)
# define QML_THREADED_VME_INTERPRETER
#endif