summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/driver.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-12-18 14:13:17 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-01-18 11:31:09 +0000
commitd4079b0797dae46f80d9ada09d43b571749e68dc (patch)
tree821a11f4e9c39284b714a91f3a9da51227e3a1bd /src/tools/uic/driver.cpp
parent1c8f7082f70af934ddc46b9687a88e02233e1082 (diff)
uic: Support id-based translations
Use Ids from newly introduced id attribute depending on the global form setting. Change-Id: I0a5094d5543c0714c88511fa159b60afc9be3c81 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/tools/uic/driver.cpp')
-rw-r--r--src/tools/uic/driver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/uic/driver.cpp b/src/tools/uic/driver.cpp
index 5f56007f6c..72be667468 100644
--- a/src/tools/uic/driver.cpp
+++ b/src/tools/uic/driver.cpp
@@ -251,6 +251,7 @@ bool Driver::printDependencies(const QString &fileName)
bool Driver::uic(const QString &fileName, DomUI *ui, QTextStream *out)
{
m_option.inputFile = fileName;
+ setUseIdBasedTranslations(ui->attributeIdbasedtr());
QTextStream *oldOutput = m_output;