chore: hide icons and symbols from particle list
This commit is contained in:
+15
-15
@@ -53,21 +53,21 @@ QVariant ParticleListModel::data(const QModelIndex &index, int role) const
|
|||||||
}
|
}
|
||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
else if (role == Qt::DecorationRole)
|
// else if (role == Qt::DecorationRole)
|
||||||
{
|
// {
|
||||||
// Return icon based on type
|
// // Return icon based on type
|
||||||
QStyle::StandardPixmap pixmap;
|
// QStyle::StandardPixmap pixmap;
|
||||||
if (particle.type == "text")
|
// if (particle.type == "text")
|
||||||
pixmap = QStyle::SP_FileIcon;
|
// pixmap = QStyle::SP_DirIcon;
|
||||||
else if (particle.type == "link")
|
// else if (particle.type == "link")
|
||||||
pixmap = QStyle::SP_CommandLink;
|
// pixmap = QStyle::SP_CommandLink;
|
||||||
else if (particle.type == "image")
|
// else if (particle.type == "image")
|
||||||
pixmap = QStyle::SP_FileDialogContentsView;
|
// pixmap = QStyle::SP_MediaPlay;
|
||||||
else
|
// else
|
||||||
return QVariant();
|
// return QVariant();
|
||||||
|
//
|
||||||
return qApp->style()->standardIcon(pixmap);
|
// return qApp->style()->standardIcon(pixmap);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user