chore: hide icons and symbols from particle list

This commit is contained in:
talksik
2026-01-30 11:50:19 -08:00
parent fdc0ad8e1d
commit 42361527fe
+15 -15
View File
@@ -53,21 +53,21 @@ QVariant ParticleListModel::data(const QModelIndex &index, int role) const
}
return display;
}
else if (role == Qt::DecorationRole)
{
// Return icon based on type
QStyle::StandardPixmap pixmap;
if (particle.type == "text")
pixmap = QStyle::SP_FileIcon;
else if (particle.type == "link")
pixmap = QStyle::SP_CommandLink;
else if (particle.type == "image")
pixmap = QStyle::SP_FileDialogContentsView;
else
return QVariant();
return qApp->style()->standardIcon(pixmap);
}
// else if (role == Qt::DecorationRole)
// {
// // Return icon based on type
// QStyle::StandardPixmap pixmap;
// if (particle.type == "text")
// pixmap = QStyle::SP_DirIcon;
// else if (particle.type == "link")
// pixmap = QStyle::SP_CommandLink;
// else if (particle.type == "image")
// pixmap = QStyle::SP_MediaPlay;
// else
// return QVariant();
//
// return qApp->style()->standardIcon(pixmap);
// }
return QVariant();
}