summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lupdate/testdata/good/parseobjc/main.mm
blob: f04701a98bc29d3c5db28843d87a25ce875f34bf (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only


























#include <QtCore/qcoreapplication.h>

@interface NSObject
@end

@interface Foo : NSObject
@property (nonatomic, retain) NSObject *child;
- (bool)someMethodWithArg:(NSObject*)child andAnotherArg:(int)age;
@end

@implementation Foo
- (bool)someMethodWithArg:(NSObject*)child andAnotherArg:(int)age
{
    QCoreApplication::translate("Biz", "Baz");
    return self.child == child && age == 42;
}
@end

int main()
{
    QCoreApplication::translate("Foo", "Bar");
    return 0;
}