Don't enforce oxygen icons for Qt-only (Linux) builds. Cehck for missing icons, and use alternatives.
NOTE: This is not 100% complete yet - still require better icons for dynamic, playlists, and others...
This commit is contained in:
committed by
craig.p.drummond
parent
a8f540abfb
commit
ee457e227c
@@ -944,7 +944,7 @@ QAction * ItemView::getAction(const QModelIndex &index)
|
||||
QRect rect(view()->visualRect(index));
|
||||
rect.moveTo(view()->viewport()->mapToGlobal(QPoint(rect.x(), rect.y())));
|
||||
bool showCapacity = !index.data(ItemView::Role_CapacityText).toString().isEmpty();
|
||||
bool haveToggle = toggle && !index.data(ItemView::Role_ToggleIconName).toString().isEmpty();
|
||||
bool haveToggle = toggle && !index.data(ItemView::Role_ToggleIcon).value<QIcon>().isNull();
|
||||
if (Mode_Tree!=mode || showCapacity) {
|
||||
if (iconMode) {
|
||||
rect.adjust(ActionItemDelegate::constBorder, ActionItemDelegate::constBorder, -ActionItemDelegate::constBorder, -ActionItemDelegate::constBorder);
|
||||
|
||||
Reference in New Issue
Block a user