diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-12-19 09:18:42 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-18 08:34:22 +0000 |
commit | f63d6afdc3d172c68bd88fd35e1a1cddf4379a6c (patch) | |
tree | a1eed1a2a6d9f5ff9764e9881dc1a54cd35e3a94 /tests/auto/linguist | |
parent | a0f8b728b43b89d0dc5e0df8d466f1e020f571a1 (diff) | |
download | qttools-f63d6afdc3d172c68bd88fd35e1a1cddf4379a6c.tar.gz |
lupdate: Read id attributes of .ui files
Task-number: QTBUG-34610
Change-Id: I807752fc573b9e6965462f0cf4728673fe3f3c70
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'tests/auto/linguist')
3 files changed, 79 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.pro b/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.pro new file mode 100644 index 000000000..fa56972dd --- /dev/null +++ b/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.pro @@ -0,0 +1,3 @@ +FORMS += project.ui + +TRANSLATIONS = project.ts diff --git a/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.ts.result new file mode 100644 index 000000000..989aabcbb --- /dev/null +++ b/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.ts.result @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1"> +<context> + <name>FindDialog</name> + <message id="windowTitleId"> + <location filename="project.ui" line="42"/> + <source>Qt Assistant - Finn text</source> + <translation type="unfinished"></translation> + </message> + <message id="heightId"> + <location filename="project.ui" line="45"/> + <source>Finn tekst - Der Bjørn möchte auch mal.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.ui b/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.ui new file mode 100644 index 000000000..684033ddb --- /dev/null +++ b/tests/auto/linguist/lupdate/testdata/good/parseidbasedui/project.ui @@ -0,0 +1,59 @@ +<ui version="4.0" idbasedtr="true"> + <author></author> +<comment>********************************************************************* +** +** Copyright (C) 2017 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the test suite of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:GPL-EXCEPT$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +*********************************************************************</comment> + <exportmacro></exportmacro> + <class>FindDialog</class> + <widget class="QWidget" name="FindDialog" > + <property name="geometry" > + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>172</height> + </rect> + </property> + <property name="windowTitle" > + <string id="windowTitleId">Qt Assistant - Finn text</string> + </property> + <property name="height" > + <string id="heightId">Finn tekst - Der Bjørn möchte auch mal.</string> + </property> + </widget> + <tabstops> + <tabstop>comboFind</tabstop> + <tabstop>checkWords</tabstop> + <tabstop>checkCase</tabstop> + <tabstop>radioForward</tabstop> + <tabstop>radioBackward</tabstop> + <tabstop>findButton</tabstop> + <tabstop>closeButton</tabstop> + </tabstops> + <resources/> + <connections/> +</ui> |