1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QQUICKGEOMETRYTESTUTIL_P_H
5#define QQUICKGEOMETRYTESTUTIL_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QObject>
19#include <QVector>
20#include <QSize>
21#include <private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QQuickItem;
26
27class QSizeChangeListener : public QObject, public QVector<QSize>
28{
29 Q_OBJECT
30public:
31 explicit QSizeChangeListener(QQuickItem *item);
32private Q_SLOTS:
33 void onSizeChanged();
34private:
35 QQuickItem *item;
36};
37
38QT_END_NAMESPACE
39
40#endif // QQUICKGEOMETRYTESTUTIL_P_H
41

source code of qtdeclarative/src/quicktestutils/quick/geometrytestutils_p.h