MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / setSearchKeyList

Method setSearchKeyList

ElaWidgetToolsExample/ModelView/T_IconModel.cpp:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void T_IconModel::setSearchKeyList(QStringList list)
22{
23 beginResetModel();
24 this->_searchKeyList = list;
25 if (_pIsSearchMode)
26 {
27 _rowCount = this->getSearchKeyList().count();
28 }
29 else
30 {
31 _rowCount = _metaEnum.keyCount() - 1;
32 }
33 endResetModel();
34}
35
36QStringList T_IconModel::getSearchKeyList()
37{

Callers 1

onSearchEditTextEditMethod · 0.80

Calls 2

getSearchKeyListMethod · 0.95
countMethod · 0.80

Tested by

no test coverage detected