diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2015-03-10 14:58:53 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2015-03-10 14:56:24 +0000 |
commit | 64513275b3f541d359c38af29139d4edfb698127 (patch) | |
tree | 6267ee6d1c7b50c1fac41c411d8dded9774e785f | |
parent | 7152ec2f4783027b5c2f4d0c0816e4931acf32cc (diff) | |
download | qttools-64513275b3f541d359c38af29139d4edfb698127.tar.gz |
Fix lupdate for .ui.qml files
The context has to be the complete base name including ".ui".
Task-number: QTBUG-44905
Change-Id: If2b148d4ecc790182a7bcc56dd17a33c4ee16617
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rw-r--r-- | src/linguist/lupdate/qdeclarative.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/lupdate/qdeclarative.cpp b/src/linguist/lupdate/qdeclarative.cpp index bbca7a002..14f7e0d19 100644 --- a/src/linguist/lupdate/qdeclarative.cpp +++ b/src/linguist/lupdate/qdeclarative.cpp @@ -79,7 +79,7 @@ public: m_todo = engine->comments(); m_translator = translator; m_fileName = fileName; - m_component = QFileInfo(fileName).baseName(); + m_component = QFileInfo(fileName).completeBaseName(); accept(node); // process the trailing comments |