MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / selectedLabelList

Method selectedLabelList

MediaLibrary/labelmodel.cpp:82–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void LabelModel::selectedLabelList(const QModelIndexList &indexes, SelectedLabelInfo &selectLabels)
83{
84 selectScript(selectLabels.scriptTags);
85 selectTime(selectLabels.timeTags);
86 selectFile(selectLabels.epPathTags);
87 static QList<TagNode *> nodes;
88 for(const QModelIndex &index:indexes)
89 {
90 if(!index.isValid()) continue;
91 TagNode *node = static_cast<TagNode*>(index.internalPointer());
92 if(node->tagType!=TagNode::TAG_CUSTOM) continue;
93 nodes.clear();
94 nodes.push_back(node);
95 while(!nodes.empty())
96 {
97 TagNode *n = nodes.takeFirst();
98 if(n->subNodes)
99 {
100 selectLabels.customPrefixTags.append(n->tagFilter);
101 }
102 else
103 {
104 selectLabels.customTags.append(n->tagFilter);
105 }
106 }
107 }
108}
109
110void LabelModel::setBrushColor(LabelModel::BrushType type, const QColor &color)
111{

Callers 1

initLabelViewMethod · 0.80

Calls 4

isValidMethod · 0.45
clearMethod · 0.45
emptyMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected