Коммит 5fcc2aac создал по автору Коул Милена Ричардовна's avatar Коул Милена Ричардовна
Просмотр файлов

remove qWarnings

владелец 7f6281c4
...@@ -164,7 +164,6 @@ void WebView::handleAuthenticationRequired(const QUrl &requestUrl, QAuthenticato ...@@ -164,7 +164,6 @@ void WebView::handleAuthenticationRequired(const QUrl &requestUrl, QAuthenticato
inline QString questionForFeature(QWebEnginePage::Feature feature) inline QString questionForFeature(QWebEnginePage::Feature feature)
{ {
switch (feature) { switch (feature) {
qWarning() << feature;
case QWebEnginePage::Geolocation: case QWebEnginePage::Geolocation:
return QObject::tr("Allow %1 to access your location information?"); return QObject::tr("Allow %1 to access your location information?");
case QWebEnginePage::MediaAudioCapture: case QWebEnginePage::MediaAudioCapture:
...@@ -214,8 +213,6 @@ void WebView::setPage(WebPage *page) ...@@ -214,8 +213,6 @@ void WebView::setPage(WebPage *page)
void WebView::handleFeaturePermissionRequested(const QUrl &securityOrigin, void WebView::handleFeaturePermissionRequested(const QUrl &securityOrigin,
QWebEnginePage::Feature feature) QWebEnginePage::Feature feature)
{ {
qWarning("HEREEEE");
QString title = tr("Permission Request"); QString title = tr("Permission Request");
QString question = questionForFeature(feature).arg(securityOrigin.host()); QString question = questionForFeature(feature).arg(securityOrigin.host());
if (!question.isEmpty() && QMessageBox::question(window(), title, question) == QMessageBox::Yes) if (!question.isEmpty() && QMessageBox::question(window(), title, question) == QMessageBox::Yes)
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать