mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Preferences: Fix showing settings icon in Extensions tab
This commit is contained in:
parent
446f02c7ee
commit
f6bd5595b6
|
@ -62,10 +62,6 @@
|
|||
<property name="text">
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../data/icons.qrc">
|
||||
<normaloff>:/icons/preferences/preferences-desktop.png</normaloff>:/icons/preferences/preferences-desktop.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -85,8 +81,6 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../data/icons.qrc"/>
|
||||
</resources>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* ============================================================
|
||||
* QupZilla - WebKit based browser
|
||||
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
||||
* QupZilla - Qt web browser
|
||||
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -23,6 +23,7 @@
|
|||
#include "pluginlistdelegate.h"
|
||||
#include "qztools.h"
|
||||
#include "settings.h"
|
||||
#include "iconprovider.h"
|
||||
|
||||
#include <QInputDialog>
|
||||
#include <QMessageBox>
|
||||
|
@ -35,6 +36,7 @@ PluginsManager::PluginsManager(QWidget* parent)
|
|||
{
|
||||
ui->setupUi(this);
|
||||
ui->list->setLayoutDirection(Qt::LeftToRight);
|
||||
ui->butSettings->setIcon(IconProvider::settingsIcon());
|
||||
|
||||
//Application Extensions
|
||||
Settings settings;
|
||||
|
@ -128,7 +130,7 @@ void PluginsManager::refresh()
|
|||
QListWidgetItem* item = new QListWidgetItem(ui->list);
|
||||
QIcon icon = QIcon(spec.icon);
|
||||
if (icon.isNull()) {
|
||||
icon = QIcon(":/icons/preferences/extension.png");
|
||||
icon = QIcon(QSL(":/icons/preferences/extensions.svg"));
|
||||
}
|
||||
item->setIcon(icon);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user