void SomeClass::searchIn_identifier_listWidget()
{
searchIn_identifier_listWidget_eventLoopControl = false;
QList<Identifier*> tempList;
QString text0 = ui->identifier_lineEdit_search_0->text();
QString text1 = ui->identifier_lineEdit_search_1->text();
QString text2 = ui->identifier_lineEdit_search_2->text();
QString text3 = ui->identifier_lineEdit_search_3->text();
QString text4 = ui->identifier_lineEdit_search_4->text();
for (int i = 0; i < Storage::identifier.count(); i++) {
qApp->processEvents();
if (searchIn_identifier_listWidget_eventLoopControl) {
return;
}
if (Storage::identifier.at(i)->dataString.contains(text0,Qt::CaseInsensitive) &&
Storage::identifier.at(i)->dataString.contains(text1,Qt::CaseInsensitive) &&
Storage::identifier.at(i)->dataString.contains(text2,Qt::CaseInsensitive) &&
Storage::identifier.at(i)->dataString.contains(text3,Qt::CaseInsensitive) &&
Storage::identifier.at(i)->dataString.contains(text4,Qt::CaseInsensitive))
{
tempList << Storage::identifier.at(i);
}
}
ui->identifier_listWidget->clear();
for (int i = 0; i < tempList.count(); i++) {
qApp->processEvents();
if (searchIn_identifier_listWidget_eventLoopControl) {
return;
}
listWidget_addItemPlusTooltip(ui->identifier_listWidget,tempList.at(i)->dataString);
}
searchIn_identifier_listWidget_eventLoopControl = true;
}
Bookmarks