Debian Codegraph @

tests/auto/linguist/lupdate/testdata/good/prefix/main.cpp

raw
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 #include "main.h"
29
30 QString foo()
31 {
32 return QCoreApplication::translate("Foo","XXX","YYY");
33 }
34
35 Foo::Foo()
36 {
37 tr("CTOR");
38 }
39
40 void Foo::bar()
41 {
42 tr("BAR");
43 }
44
45 class BitFields : public QObject
46 {
47 int bits : 20;
48 QString str = tr("text BitFields");
49 };
50
51 Bibi::Bibi()
52 {
53 //int bits : 32;
54 tr("text Bibi");
55 Babebi::tr("text Babebi");
56 }