add docs for QPlatformTheme.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From c71fc3860b0947c3c793578117e9eb0a3eb3fb31 Mon Sep 17 00:00:00 2001
  2. From: Shawn Rutledge <shawn.rutledge@qt.io>
  3. Date: Thu, 24 Nov 2016 11:58:19 +0100
  4. Subject: [PATCH] add docs for QPlatformTheme::WheelScrollLines,
  5. MouseDoubleClickDistance
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=utf8
  8. Content-Transfer-Encoding: 8bit
  9. These theme hints were added in fac71528 and 4a2e297b respectively.
  10. Change-Id: Ic39f32dae4d0843b1b2398beb27081ad07d75772
  11. Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
  12. (cherry picked from commit 847a152474550e0952d31f15069fb346565938df)
  13. Reviewed-by: Simo Fält <simo.falt@qt.io>
  14. ---
  15. src/gui/kernel/qplatformtheme.cpp | 7 +++++++
  16. 1 file changed, 7 insertions(+)
  17. diff --git a/src/gui/kernel/qplatformtheme.cpp b/src/gui/kernel/qplatformtheme.cpp
  18. index 7f74959..2379b23 100644
  19. --- a/src/gui/kernel/qplatformtheme.cpp
  20. +++ b/src/gui/kernel/qplatformtheme.cpp
  21. @@ -79,6 +79,10 @@ QT_BEGIN_NAMESPACE
  22. \value MouseDoubleClickInterval (int) Mouse double click interval in ms,
  23. overriding QPlatformIntegration::styleHint.
  24. + \value MouseDoubleClickDistance (int) The maximum distance in logical pixels which the mouse can travel
  25. + between clicks in order for the click sequence to be handled as a double click.
  26. + The default value is 5 logical pixels.
  27. +
  28. \value MousePressAndHoldInterval (int) Mouse press and hold interval in ms,
  29. overriding QPlatformIntegration::styleHint.
  30. @@ -88,6 +92,9 @@ QT_BEGIN_NAMESPACE
  31. \value StartDragTime (int) Start drag time in ms,
  32. overriding QPlatformIntegration::styleHint.
  33. + \value WheelScrollLines (int) The number of lines to scroll a widget, when the mouse wheel is rotated.
  34. + The default value is 3. \sa QApplication::wheelScrollLines()
  35. +
  36. \value KeyboardAutoRepeatRate (int) Keyboard auto repeat rate,
  37. overriding QPlatformIntegration::styleHint.
  38. --
  39. 2.7.4