aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmltyperegistrar/foreign/foreign.h
blob: ea78a5843270018e7fca8d21ba446300ab2a8497 (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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef FOREIGN_H
#define FOREIGN_H

#include <QtCore/qobject.h>
#include <QtCore/qsize.h>

class Foreign : public QObject
{
    Q_OBJECT
    Q_PROPERTY(int things READ things WRITE setThings NOTIFY thingsChanged)

public:
    int things() const;

public slots:
    void setThings(int things);

signals:
    void thingsChanged(int things);

private:
    int m_things = 0;
};

class SizeGadget : public QSize
{
    Q_GADGET
    Q_PROPERTY(int height READ height WRITE setHeight FINAL)
};

#endif // FOREIGN_H