mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix icon name in SBI images icon + add object name to AdBlockIcon
This commit is contained in:
parent
c75324f379
commit
11d73bd26a
@ -38,6 +38,7 @@ AdBlockIcon::AdBlockIcon(BrowserWindow* window, QWidget* parent)
|
|||||||
, m_timerTicks(0)
|
, m_timerTicks(0)
|
||||||
, m_enabled(false)
|
, m_enabled(false)
|
||||||
{
|
{
|
||||||
|
setObjectName(QSL("adblockicon"));
|
||||||
setCursor(Qt::PointingHandCursor);
|
setCursor(Qt::PointingHandCursor);
|
||||||
setToolTip(tr("AdBlock lets you block unwanted content on web pages"));
|
setToolTip(tr("AdBlock lets you block unwanted content on web pages"));
|
||||||
setFixedSize(16, 16);
|
setFixedSize(16, 16);
|
||||||
|
@ -32,7 +32,7 @@ SBI_ImagesIcon::SBI_ImagesIcon(BrowserWindow* window, const QString &settingsPat
|
|||||||
setCursor(Qt::PointingHandCursor);
|
setCursor(Qt::PointingHandCursor);
|
||||||
setToolTip(tr("Modify images loading settings per-site and globally"));
|
setToolTip(tr("Modify images loading settings per-site and globally"));
|
||||||
|
|
||||||
m_icon = QIcon::fromTheme("image-x-generics", QIcon(":sbi/data/images.png"));
|
m_icon = QIcon::fromTheme("image-x-generic", QIcon(":sbi/data/images.png"));
|
||||||
setPixmap(m_icon.pixmap(16));
|
setPixmap(m_icon.pixmap(16));
|
||||||
|
|
||||||
QSettings settings(m_settingsFile, QSettings::IniFormat);
|
QSettings settings(m_settingsFile, QSettings::IniFormat);
|
||||||
|
Loading…
Reference in New Issue
Block a user