Revert "Convert font image straight to QIcons"
This reverts commit 7cd632b4e2.
The commit would cause the font icons to be inverted sometimes. This
reversion is altered to return the font bitmaps as a QPixmap instead of a
QBitmap to be compatible with Qt6.
This commit is contained in:
@@ -61,9 +61,9 @@ QVariant CharacterListModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
if (role == Qt::DecorationRole) {
|
||||
if (m_mosaic && (index.row()+32) & 0x20)
|
||||
return m_fontBitmap.charIcon(index.row()+32, 24);
|
||||
return m_fontBitmap.charBitmap(index.row()+32, 24);
|
||||
else
|
||||
return m_fontBitmap.charIcon(index.row()+32, m_characterSet);
|
||||
return m_fontBitmap.charBitmap(index.row()+32, m_characterSet);
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
|
||||
Reference in New Issue
Block a user