mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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) {
|
||||
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);
|
||||
leftPosition = iconRect.right() + m_padding * 2;
|
||||
|
Loading…
Reference in New Issue
Block a user