Debian Codegraph @

tests/auto/linguist/lupdate/testdata/good/preprocess/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
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 #include <QtWidgets/QApplication>
32
33 void func1() {
34 QApplication::tr("Hello world", "Platform-independent file");
35 }
36
37
38
39
40 void func2() {
41 #ifdef Q_OS_WIN
42 QApplication::tr("Kind", "Windows only, see Type");
43 #else
44 QApplication::tr("Type", "Not used on windows, see Kind");
45 #endif
46
47 }
48
49
50
51 void stringconcatenation()
52 {
53 QApplication::tr("One string,"
54 " three"
55 " lines");
56
57 QApplication::tr("a backslash followed by newline \
58 should be ignored \
59 and the next line should be syntactically considered to be \
60 on the same line");
61
62 }
63
64
65