diff options
Diffstat (limited to 'src/gui/kernel/qplatformintegration_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformintegration_qpa.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.cpp b/src/gui/kernel/qplatformintegration_qpa.cpp index 39341fa88f..2beb0bb240 100644 --- a/src/gui/kernel/qplatformintegration_qpa.cpp +++ b/src/gui/kernel/qplatformintegration_qpa.cpp @@ -209,6 +209,25 @@ QPlatformInputContext *QPlatformIntegration::inputContext() const return 0; } +QVariant QPlatformIntegration::styleHint(StyleHint hint) const +{ + switch (hint) { + case CursorFlashTime: + return 1000; + case KeyboardInputInterval: + return 400; + case MouseDoubleClickInterval: + return 400; + case StartDragDistance: + return 10; + case StartDragTime: + return 500; + } + + return 0; +} + + /*! Should be called by the implementation whenever a new screen is added. |