MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / appendFilter

Method appendFilter

global.cpp:307–317  ·  view source on GitHub ↗

Append the filter criteria to the filterCriteria queue.

Source from the content-addressed store, hash-verified

305
306// Append the filter criteria to the filterCriteria queue.
307void Global::appendFilter(FilterCriteria *criteria) {
308 // First, find out if we're already viewing history. If we are we
309 // chop off the end of the history & start a new one
310 if (filterPosition+1 < filterCriteria.size()) {
311 int position = filterPosition;
312 while (position+1 < filterCriteria.size())
313 delete filterCriteria.takeAt(position);
314 }
315
316 filterCriteria.append(criteria);
317}
318
319
320

Callers 2

setupGuiMethod · 0.80
linkClickedMethod · 0.80

Calls 1

takeAtMethod · 0.80

Tested by

no test coverage detected