diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-08-25 12:44:04 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-11-18 18:45:32 +0000 |
commit | eca814045228a8c403d0b9aabca448ae5bc72b96 (patch) | |
tree | 878ae39c77f42c2253c4aaec822476f29d060eab /tests/auto/input | |
parent | 116444be36579c5f60fd73a22d655cad36d72925 (diff) |
Input tests common: specify proxy device name
Change-Id: I93dd13a00f891b5effc7dd1f0909626e95d7a98f
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/auto/input')
-rw-r--r-- | tests/auto/input/commons/testdeviceproxy.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/input/commons/testdeviceproxy.h b/tests/auto/input/commons/testdeviceproxy.h index 0a6af9876..366f40958 100644 --- a/tests/auto/input/commons/testdeviceproxy.h +++ b/tests/auto/input/commons/testdeviceproxy.h @@ -84,8 +84,8 @@ public: class TestProxyPrivate : public Qt3DInput::QAbstractPhysicalDeviceProxyPrivate { public: - TestProxyPrivate() - : Qt3DInput::QAbstractPhysicalDeviceProxyPrivate(QStringLiteral("TestProxy")) + explicit TestProxyPrivate(const QString &name) + : Qt3DInput::QAbstractPhysicalDeviceProxyPrivate(name) {} }; @@ -93,8 +93,8 @@ class TestProxy : public Qt3DInput::QAbstractPhysicalDeviceProxy { Q_OBJECT public: - TestProxy() - : Qt3DInput::QAbstractPhysicalDeviceProxy(*new TestProxyPrivate) + explicit TestProxy(const QString &name = QStringLiteral("TestProxy")) + : Qt3DInput::QAbstractPhysicalDeviceProxy(*new TestProxyPrivate(name)) {} Qt3DInput::QAbstractPhysicalDevice *device() const |