┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/servicemodel.cpp
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2025-10-18 12:35:49 +0200
committerMéven Car <[email protected]>2025-10-23 15:41:44 +0000
commit36c29512d571236e6c112bf633365221323e9086 (patch)
tree885bd35452300c560fef484375eff9268c9be9bf /src/settings/servicemodel.cpp
parent2a3f1badca2a5f21bfb62022d3ff435c7e74cca7 (diff)
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.
Diffstat (limited to 'src/settings/servicemodel.cpp')
-rw-r--r--src/settings/servicemodel.cpp5
1 files changed, 5 insertions, 0 deletions
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: