diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-02-07 13:56:28 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-02-07 14:18:51 +0000 |
commit | 54aef070625c2b1bd45394f8ffe1ea0b07bc5805 (patch) | |
tree | a137f97904e48ece46f042fd237a9320b759609c /src/quickcontrols2 | |
parent | 9c6e655969eb8b90b14367dd7218c79521e3f6db (diff) |
Fix -no-feature-shortcut build
Change-Id: If567b99889b40528150834c3319cdfec8e5b229e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/quickcontrols2')
-rw-r--r-- | src/quickcontrols2/qquickproxytheme.cpp | 2 | ||||
-rw-r--r-- | src/quickcontrols2/qquickproxytheme_p.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/quickcontrols2/qquickproxytheme.cpp b/src/quickcontrols2/qquickproxytheme.cpp index 3442e465..9b395b28 100644 --- a/src/quickcontrols2/qquickproxytheme.cpp +++ b/src/quickcontrols2/qquickproxytheme.cpp @@ -151,12 +151,14 @@ QIconEngine *QQuickProxyTheme::createIconEngine(const QString &iconName) const return QPlatformTheme::createIconEngine(iconName); } +#if QT_CONFIG(shortcut) QList<QKeySequence> QQuickProxyTheme::keyBindings(QKeySequence::StandardKey key) const { if (m_theme) return m_theme->keyBindings(key); return QPlatformTheme::keyBindings(key); } +#endif QString QQuickProxyTheme::standardButtonText(int button) const { diff --git a/src/quickcontrols2/qquickproxytheme_p.h b/src/quickcontrols2/qquickproxytheme_p.h index ee74e703..04f800f4 100644 --- a/src/quickcontrols2/qquickproxytheme_p.h +++ b/src/quickcontrols2/qquickproxytheme_p.h @@ -84,7 +84,9 @@ public: QIconEngine *createIconEngine(const QString &iconName) const override; +#if QT_CONFIG(shortcut) QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override; +#endif QString standardButtonText(int button) const override; |