ask the icon cache for the inline block icon
This commit is contained in:
@@ -266,9 +266,7 @@ void BlueprintSelectionDialog::rebuildGrid()
|
||||
|
||||
// Block icon shown to the right of each cost (REQ-UI-BLUEPRINT-CARD); null when no
|
||||
// building_block icon exists, in which case the cost is the bare number.
|
||||
const QPixmap blockIcon = m_itemIcons->hasIcon(kBlockItemId)
|
||||
? m_itemIcons->getPixmap(kBlockItemId, QFontMetrics(font()).height())
|
||||
: QPixmap();
|
||||
const QPixmap blockIcon = m_itemIcons->getInlineIcon(kBlockItemId, font());
|
||||
|
||||
const QSize cardSize = getCardSize(font());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user