Debian Codegraph @

tests/auto/linguist/lupdate/testdata/good/parseobjc/main.mm

raw
1 // Copyright (C) 2020 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 #include <QtCore/qcoreapplication.h>
30
31 @interface NSObject
32 @end
33
34 @interface Foo : NSObject
35 @property (nonatomic, retain) NSObject *child;
36 - (bool)someMethodWithArg:(NSObject*)child andAnotherArg:(int)age;
37 @end
38
39 @implementation Foo
40 - (bool)someMethodWithArg:(NSObject*)child andAnotherArg:(int)age
41 {
42 QCoreApplication::translate("Biz", "Baz");
43 return self.child == child && age == 42;
44 }
45 @end
46
47 int main()
48 {
49 QCoreApplication::translate("Foo", "Bar");
50 return 0;
51 }