mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
HTML5PermissionsNotification: Remove icon of the requested feature
This commit is contained in:
parent
eeef5da06c
commit
0584037a4f
@ -53,8 +53,6 @@
|
||||
<file>icons/sites/wikipedia.png</file>
|
||||
<file>icons/preferences/preferences-desktop-keyboard-shortcuts.png</file>
|
||||
<file>icons/menu/tab.svg</file>
|
||||
<file>icons/other/geolocation.png</file>
|
||||
<file>icons/other/notification.png</file>
|
||||
<file>icons/sites/startpage.png</file>
|
||||
<file>icons/sites/w3.png</file>
|
||||
<file>icons/other/loading.png</file>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
@ -40,32 +40,26 @@ HTML5PermissionsNotification::HTML5PermissionsNotification(const QUrl &origin, Q
|
||||
|
||||
switch (feature) {
|
||||
case QWebEnginePage::Notifications:
|
||||
ui->iconLabel->setPixmap(QPixmap(":icons/other/notification.png"));
|
||||
ui->textLabel->setText(tr("Allow %1 to show desktop notifications?").arg(site));
|
||||
break;
|
||||
|
||||
case QWebEnginePage::Geolocation:
|
||||
ui->iconLabel->setPixmap(QPixmap(":icons/other/geolocation.png"));
|
||||
ui->textLabel->setText(tr("Allow %1 to locate your position?").arg(site));
|
||||
break;
|
||||
|
||||
case QWebEnginePage::MediaAudioCapture:
|
||||
ui->iconLabel->setPixmap(QPixmap(":icons/other/audiocapture.png"));
|
||||
ui->textLabel->setText(tr("Allow %1 to use your microphone?").arg(site));
|
||||
break;
|
||||
|
||||
case QWebEnginePage::MediaVideoCapture:
|
||||
ui->iconLabel->setPixmap(QPixmap(":icons/other/webcam.png"));
|
||||
ui->textLabel->setText(tr("Allow %1 to use your camera?").arg(site));
|
||||
break;
|
||||
|
||||
case QWebEnginePage::MediaAudioVideoCapture:
|
||||
ui->iconLabel->setPixmap(QPixmap(":icons/other/microphone-webcam.png"));
|
||||
ui->textLabel->setText(tr("Allow %1 to use your microphone and camera?").arg(site));
|
||||
break;
|
||||
|
||||
case QWebEnginePage::MouseLock:
|
||||
ui->iconLabel->setPixmap(QPixmap(":icons/other/mouselock.png"));
|
||||
ui->textLabel->setText(tr("Allow %1 to hide your pointer?").arg(site));
|
||||
break;
|
||||
|
||||
|
@ -17,25 +17,6 @@
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="iconLabel">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>24</width>
|
||||
<height>24</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="textLabel">
|
||||
<property name="text">
|
||||
|
Loading…
Reference in New Issue
Block a user