summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp
blob: 6f093aeff7ad9a62448fa48d2da44bdb64d2b1ed (plain)
1
2
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

























#include <QtCore>
class DClass
{

//: This is a comment, too.
 const char *c_noop_translate = QT_TRANSLATE_NOOP("context", "just a message");
  void func();
};
void DClass::func() {
//: commented
  qtTrId("lollipop");

//% "this is the source text"
//~ meta so-meta
//: even more commented
  qtTrId("lollipop");

//% "this is contradicting source text"
  qtTrId("lollipop");

//~ meta too-much-meta
  qtTrId("lollipop");



//~ meta so-meta
  auto a = QObject::tr("another message", "here with a lot of noise in the comment so it is long enough");

//~ meta too-much-meta
  auto aa = QObject::tr("another message", "here with a lot of noise in the comment so it is long enough"); // old parser: not picked up



//: commented
qtTrId("lollipop");
}