From 36c29512d571236e6c112bf633365221323e9086 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sat, 18 Oct 2025 12:35:49 +0200 Subject: PreviewSettings: add a tooltip showing the filename of plugins So users can identify them and distinguish them when two plugins provide the same mimetype support or help figure out devs where the plugins are loaded from. --- src/settings/servicemodel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/settings/servicemodel.cpp') diff --git a/src/settings/servicemodel.cpp b/src/settings/servicemodel.cpp index c2ebda7c1..a59088653 100644 --- a/src/settings/servicemodel.cpp +++ b/src/settings/servicemodel.cpp @@ -56,6 +56,9 @@ bool ServiceModel::setData(const QModelIndex &index, const QVariant &value, int case Qt::DisplayRole: m_items[row].text = value.toString(); break; + case Qt::ToolTipRole: + m_items[row].tooltip = value.toString(); + break; case DesktopEntryNameRole: m_items[row].desktopEntryName = value.toString(); break; @@ -76,6 +79,8 @@ QVariant ServiceModel::data(const QModelIndex &index, int role) const return m_items[row].checked; case Qt::DecorationRole: return QIcon::fromTheme(m_items[row].icon); + case Qt::ToolTipRole: + return m_items[row].tooltip; case Qt::DisplayRole: return m_items[row].text; case DesktopEntryNameRole: -- cgit v1.3