Открыть боковую панель
MOS
Исходные коды
mos-vkm
Коммиты
5fcc2aac
Коммит
5fcc2aac
создал
Авг 29, 2024
по автору
Коул Милена Ричардовна
Просмотр файлов
remove qWarnings
владелец
7f6281c4
Изменения
1
Скрыть пробелы
Построчно
Рядом
webEngineWidgets/webview.cpp
Просмотр файла @
5fcc2aac
...
@@ -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.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать