From 7b9a4f0ce02fc059e76fa9cba90425fd75f0326e Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 9 Jun 2022 23:58:46 +0200 Subject: Add qt.quickplugin test --- tests/projects/qt/quickplugin/src/Foo.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/projects/qt/quickplugin/src/Foo.cpp (limited to 'tests/projects/qt/quickplugin/src/Foo.cpp') diff --git a/tests/projects/qt/quickplugin/src/Foo.cpp b/tests/projects/qt/quickplugin/src/Foo.cpp new file mode 100644 index 000000000..83aceec6a --- /dev/null +++ b/tests/projects/qt/quickplugin/src/Foo.cpp @@ -0,0 +1,16 @@ +#include "Foo.h" + +Foo::Foo(QObject *parent) : QObject { parent }, m_bar{ 0 } { +} + +int Foo::bar() const noexcept { + return m_bar; +} + +void Foo::setBar(int bar) noexcept { + if(bar == m_bar) return; + + m_bar = bar; + + Q_EMIT barChanged(m_bar); +} \ No newline at end of file -- cgit v1.3.1