diff options
| author | Tor Arne Vestbø <[email protected]> | 2015-12-16 15:55:12 +0100 | 
|---|---|---|
| committer | Tor Arne Vestbø <[email protected]> | 2015-12-17 17:14:34 +0000 | 
| commit | 420438b5d304f815b65510fa8678beb08bcc4fd2 (patch) | |
| tree | 30e87ff53de8d827bc0f43c13054c5972c10dec1 /src/gui/kernel/qplatformintegration.cpp | |
| parent | a1bb00becec04bfb4d775cd8056b6894f4eef198 (diff) | |
iOS: Implement support for QApplication::beep()
Vibrates the device or plays an alert sound on devices
that do not support vibration.
The other implementations of beep() have been moved to
QPlatformIntegration as a proper API instead of having
them as invokables in QPlatformNativeInterface.
Change-Id: Ic597dbef04b46d49862b070e78ddfc0d763829a2
Reviewed-by: Simon Hausmann <[email protected]>
Reviewed-by: Kai Uwe Broulik <[email protected]>
Diffstat (limited to 'src/gui/kernel/qplatformintegration.cpp')
| -rw-r--r-- | src/gui/kernel/qplatformintegration.cpp | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/src/gui/kernel/qplatformintegration.cpp b/src/gui/kernel/qplatformintegration.cpp index 0968c9deed1..82cb4dd399f 100644 --- a/src/gui/kernel/qplatformintegration.cpp +++ b/src/gui/kernel/qplatformintegration.cpp @@ -557,6 +557,17 @@ void QPlatformIntegration::sync()  {  } +/*! +   \since 5.7 + +    Should sound a bell, using the default volume and sound. + +    \sa QApplication::beep() +*/ +void QPlatformIntegration::beep() const +{ +} +  #ifndef QT_NO_OPENGL  /*!    Platform integration function for querying the OpenGL implementation type. | 
