1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[WebSearchBar] Use search icon from theme.

This commit is contained in:
nowrep 2013-04-27 13:24:27 +02:00
parent ba9535a727
commit a618cb7249
4 changed files with 3 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -198,10 +198,9 @@ IconProvider
#websearchbar-searchbutton
{
margin-bottom:2px;
margin-right: 2px;
qproperty-pixmap: url(images/search-icon.png);
qproperty-fixedsize: 20px 16px;
qproperty-themeIcon: "edit-find";
qproperty-fallbackIcon: url(images/edit-find.png);
}
#websearchbar-searchprovider-comobobox

View File

@ -37,7 +37,7 @@ void ClickableLabel::setThemeIcon(const QString &name)
void ClickableLabel::setFallbackIcon(const QIcon &image)
{
if (pixmap()->isNull()) {
if (!pixmap() || pixmap()->isNull()) {
adjustSize();
setPixmap(image.pixmap(size()));
}