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:
craig.p.drummond
2012-09-18 18:47:25 +00:00
committed by craig.p.drummond
parent a8f540abfb
commit ee457e227c
17 changed files with 136 additions and 63 deletions

View File

@@ -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);