From 42361527fe1585e762ed2d7c8710d5a2e852e389 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 30 Jan 2026 11:50:19 -0800 Subject: [PATCH] chore: hide icons and symbols from particle list --- src/particlelistmodel.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/particlelistmodel.cpp b/src/particlelistmodel.cpp index 04cbf7b..f277e0f 100644 --- a/src/particlelistmodel.cpp +++ b/src/particlelistmodel.cpp @@ -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(); }