summaryrefslogtreecommitdiffstats
path: root/tests/manual/surfacetest/buttonwrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/surfacetest/buttonwrapper.cpp')
-rw-r--r--tests/manual/surfacetest/buttonwrapper.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/manual/surfacetest/buttonwrapper.cpp b/tests/manual/surfacetest/buttonwrapper.cpp
new file mode 100644
index 00000000..c8eef0c7
--- /dev/null
+++ b/tests/manual/surfacetest/buttonwrapper.cpp
@@ -0,0 +1,14 @@
+// Copyright (C) 2022 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+#include "buttonwrapper.h"
+#include <QPushButton>
+
+ButtonWrapper::ButtonWrapper(QPushButton *button)
+{
+ m_button = button;
+}
+
+void ButtonWrapper::setEnabled(int state)
+{
+ m_button->setEnabled(state);
+}