summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/qdbuscpp2xml/test2.h
blob: b90820ad3808e4d785e4829744e47c379a6d730d (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef TEST2_H
#define TEST2_H

#include <QObject>
#include <QtDBus/QtDBus>

// Regression test for QTBUG-34550
class Test2 : public QObject
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "net.company.object")
    Q_PROPERTY(QDBusObjectPath objectProperty READ objectProperty)
    Q_PROPERTY(QList<QDBusObjectPath> objectPropertyList READ objectPropertyList)
public:
    Test2(QObject *parent = nullptr) : QObject(parent) { }

    QDBusObjectPath objectProperty() { return {}; }

    QList<QDBusObjectPath> objectPropertyList() { return {}; }
};

#endif // TEST2_H