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:
parent
ba9535a727
commit
a618cb7249
BIN
bin/themes/linux/images/edit-find.png
Normal file
BIN
bin/themes/linux/images/edit-find.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 710 B |
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB |
@ -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
|
||||
|
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user