From d2d5baeb8c3b10579f7f144e918b2935af66bec5 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 7 Nov 2014 14:31:48 +0100 Subject: Fix enum names of audio/video features The feature enum names and documentation gave the impression it could control audio and video output, while they only control input. Also removed documentation of non connected feature permissions for Notifications and GeoLocation. Change-Id: Ia35142ca691ebd6059b7472e9803fda8cbd84813 Reviewed-by: Jocelyn Turcotte Reviewed-by: Pierre Rossi --- examples/webenginewidgets/browser/featurepermissionbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/webenginewidgets/browser/featurepermissionbar.cpp b/examples/webenginewidgets/browser/featurepermissionbar.cpp index 2cc9907bd..98f19ad1f 100644 --- a/examples/webenginewidgets/browser/featurepermissionbar.cpp +++ b/examples/webenginewidgets/browser/featurepermissionbar.cpp @@ -56,11 +56,11 @@ static QString textForPermissionType(QWebEnginePage::Feature type) return QObject::tr("desktop notifications"); case QWebEnginePage::Geolocation: return QObject::tr("your position"); - case QWebEnginePage::MediaAudioDevices: + case QWebEnginePage::MediaAudioCapture: return QObject::tr("your microphone"); - case QWebEnginePage::MediaVideoDevices: + case QWebEnginePage::MediaVideoCapture: return QObject::tr("your camera"); - case QWebEnginePage::MediaAudioVideoDevices: + case QWebEnginePage::MediaAudioVideoCapture: return QObject::tr("your camera and microphone"); default: Q_UNREACHABLE(); -- cgit v1.2.3