MCPcopy Create free account
hub / github.com/KDE/kate / setFilterText

Method setFilterText

apps/lib/quickopen/katequickopen.cpp:127–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126public Q_SLOTS:
127 bool setFilterText(const QString &text)
128 {
129 // we don't want to trigger filtering if the user is just entering line:col
130 QString const splitted = text.split(u':').at(0);
131 if (splitted == pattern) {
132 return false;
133 }
134
135 if (filterMode == Wildcard) {
136 pattern = splitted;
137 setFilterWildcard(pattern);
138 return true;
139 }
140
141 beginResetModel();
142 pattern = splitted;
143 matchPath = pattern.contains(u'/');
144 endResetModel();
145
146 return true;
147 }
148
149 void setFilterMode(FilterMode m)
150 {

Callers 1

KateQuickOpenMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected