path: root/src/tools/uic/cpp/cppwriteinitialization.h
diff options
authorFriedemann Kleint <>2011-12-22 14:51:47 +0100
committerQt by Nokia <>2012-01-20 14:17:41 +0100
commit688d463f4ad4ebe62533d416c956d3a30ccfc0a6 (patch)
treeb987cb177d0c4cdd452bbe5dd3f4b22ff3b762ef /src/tools/uic/cpp/cppwriteinitialization.h
parent0f8ad242fb9c82e542ace1d2595038edf87f7b3d (diff)
uic: Add translation-attributes to string list properties.
Task-number: QTBUG-8926 Task-number: QTBUG-20440 Change-Id: I57d92110bf532c717451336bd1943c9571020478 Reviewed-by: Jarek Kobus <>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.h')
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/uic/cpp/cppwriteinitialization.h b/src/tools/uic/cpp/cppwriteinitialization.h
index 721eb0f79e..ec3982445d 100644
--- a/src/tools/uic/cpp/cppwriteinitialization.h
+++ b/src/tools/uic/cpp/cppwriteinitialization.h
@@ -58,6 +58,7 @@ class DomBrush;
class DomFont;
class DomResourceIcon;
class DomSizePolicy;
+class DomStringList;
struct Option;
namespace CPP {
@@ -176,11 +177,13 @@ private:
QString trCall(DomString *str, const QString &defaultString = QString()) const;
QString noTrCall(DomString *str, const QString &defaultString = QString()) const;
QString autoTrCall(DomString *str, const QString &defaultString = QString()) const;
- QTextStream &autoTrOutput(DomString *str, const QString &defaultString = QString());
+ inline QTextStream &autoTrOutput(const DomProperty *str);
+ QTextStream &autoTrOutput(const DomString *str, const QString &defaultString = QString());
// Apply a comma-separated list of values using a function "setSomething(int idx, value)"
void writePropertyList(const QString &varName, const QString &setFunction, const QString &value, const QString &defaultValue);
enum { WritePropertyIgnoreMargin = 1, WritePropertyIgnoreSpacing = 2, WritePropertyIgnoreObjectName = 4 };
+ QString writeStringListProperty(const DomStringList *list) const;
void writeProperties(const QString &varName, const QString &className, const DomPropertyList &lst, unsigned flags = 0);
void writeColorGroup(DomColorGroup *colorGroup, const QString &group, const QString &paletteName);
void writeBrush(const DomBrush *brush, const QString &brushName);