MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / flags

Method flags

launcher/FileIgnoreProxy.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83Qt::ItemFlags FileIgnoreProxy::flags(const QModelIndex& index) const
84{
85 if (!index.isValid())
86 return Qt::NoItemFlags;
87
88 auto sourceIndex = mapToSource(index);
89 Qt::ItemFlags flags = sourceIndex.flags();
90 if (index.column() == 0) {
91 flags |= Qt::ItemIsUserCheckable;
92 if (sourceIndex.model()->hasChildren(sourceIndex)) {
93 flags |= Qt::ItemIsAutoTristate;
94 }
95 }
96
97 return flags;
98}
99
100QVariant FileIgnoreProxy::data(const QModelIndex& index, int role) const
101{

Callers

nothing calls this directly

Calls 2

modelMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected