mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 02:52:12 +01:00
LocationCompleterDelegate: Draw search engine icon for search shortcuts
This commit is contained in:
parent
8208d7ceda
commit
0cf48359f9
|
@ -95,6 +95,10 @@ void LocationCompleterDelegate::paint(QPainter* painter, const QStyleOptionViewI
|
||||||
}
|
}
|
||||||
if (loadAction.type == LocationBar::LoadAction::Bookmark) {
|
if (loadAction.type == LocationBar::LoadAction::Bookmark) {
|
||||||
pixmap = IconProvider::instance()->bookmarkIcon().pixmap(iconSize, iconMode);
|
pixmap = IconProvider::instance()->bookmarkIcon().pixmap(iconSize, iconMode);
|
||||||
|
} else if (loadAction.type == LocationBar::LoadAction::Search) {
|
||||||
|
if (loadAction.searchEngine.name != LocationBar::searchEngine().name) {
|
||||||
|
pixmap = loadAction.searchEngine.icon.pixmap(iconSize, iconMode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
painter->drawPixmap(iconRect, pixmap);
|
painter->drawPixmap(iconRect, pixmap);
|
||||||
leftPosition = iconRect.right() + m_padding * 2;
|
leftPosition = iconRect.right() + m_padding * 2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user