| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
// IMPORTANT!!!! If you want to add testdata to this file, |
| 30 |
// always add it to the end in order to not change the linenumbers of translations!!! |
| 31 |
|
| 32 |
#define QTCORE <QtCore> |
| 33 |
#include QTCORE // Hidden from lupdate, but compiles |
| 34 |
|
| 35 |
class A: public QObject { |
| 36 |
Q_OBJECT |
| 37 |
void foo() |
| 38 |
{ |
| 39 |
// same text match |
| 40 |
tr("this is the matched same text"); |
| 41 |
|
| 42 |
// failed same text |
| 43 |
tr("this is the non-matched same text"); |
| 44 |
} |
| 45 |
}; |
| 46 |
|