blob: 79ac8074cffffab8e6a65badcbf186c3ab630e2a (
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
#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
|