diff options
Diffstat (limited to 'tests/manual/painterpathquickshape/debugvisualizationcontroller.h')
-rw-r--r-- | tests/manual/painterpathquickshape/debugvisualizationcontroller.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/manual/painterpathquickshape/debugvisualizationcontroller.h b/tests/manual/painterpathquickshape/debugvisualizationcontroller.h new file mode 100644 index 0000000000..337736b95b --- /dev/null +++ b/tests/manual/painterpathquickshape/debugvisualizationcontroller.h @@ -0,0 +1,35 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef DEBUGVISUALIZATIONCONTROLLER_H +#define DEBUGVISUALIZATIONCONTROLLER_H + +#include <QObject> + +class DebugVisualizationController : public QObject +{ + Q_OBJECT + Q_PROPERTY(bool showCurves READ showCurves WRITE setShowCurves NOTIFY showCurvesChanged) + Q_PROPERTY(bool showWireframe READ showWireframe WRITE setWireframe NOTIFY showWireframeChanged) + +public: + explicit DebugVisualizationController(QObject *parent = nullptr); + + bool showCurves() const; + void setShowCurves(bool newShowCurves); + + bool showWireframe() const; + void setWireframe(bool newShowWireframe); + +signals: + void showCurvesChanged(); + void showWireframeChanged(); + void settingsChanged(); + +private: + void update(); + bool m_showCurves = false; + bool m_showWireframe = false; +}; + +#endif // DEBUGVISUALIZATIONCONTROLLER_H |