diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-08-25 11:38:22 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-11-18 18:45:18 +0000 |
commit | aee2148ba6a3c922ffbe4b9e80a65f3030d11d32 (patch) | |
tree | a809ad7a693a166bbe9b6e3c8b6b394d28f2b9ff /src/input/frontend/qinputaspect.cpp | |
parent | f725abcfcc41fb9bd012a0efd0858f63c472e4a2 (diff) |
Input: move createPhysicalDevice into input handler
This will avoid code duplication when the device wrapper loader job is introduced
Change-Id: Ia970b88f8c6aa484b30b5154d107fa7a1f155612
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/input/frontend/qinputaspect.cpp')
-rw-r--r-- | src/input/frontend/qinputaspect.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/input/frontend/qinputaspect.cpp b/src/input/frontend/qinputaspect.cpp index bae22ee0a..2e12f1fb0 100644 --- a/src/input/frontend/qinputaspect.cpp +++ b/src/input/frontend/qinputaspect.cpp @@ -188,13 +188,7 @@ void QInputAspectPrivate::loadInputDevicePlugins() QAbstractPhysicalDevice *QInputAspect::createPhysicalDevice(const QString &name) { Q_D(QInputAspect); - const auto integrations = d->m_inputHandler->inputDeviceIntegrations(); - QAbstractPhysicalDevice *device = nullptr; - for (Qt3DInput::QInputDeviceIntegration *integration : integrations) { - if ((device = integration->createPhysicalDevice(name)) != nullptr) - break; - } - return device; + return d->m_inputHandler->createPhysicalDevice(name); } /*! |