MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / searchWithTerm

Method searchWithTerm

launcher/ui/pages/modplatform/technic/TechnicModel.cpp:93–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void Technic::ListModel::searchWithTerm(const QString& term)
94{
95 if(currentSearchTerm == term && currentSearchTerm.isNull() == term.isNull()) {
96 return;
97 }
98 currentSearchTerm = term;
99 if(jobPtr) {
100 jobPtr->abort();
101 searchState = ResetRequested;
102 return;
103 }
104 else {
105 beginResetModel();
106 modpacks.clear();
107 endResetModel();
108 searchState = None;
109 }
110 performSearch();
111}
112
113void Technic::ListModel::performSearch()
114{

Callers 1

triggerSearchMethod · 0.45

Calls 2

abortMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected