void EventSearch::searchClicked() { bool thingsAreChanged = false; EventHandler::QueryArgs q; qDebug() << "søk klikket på"; if (includeDates->isChecked()) { thingsAreChanged = true; q.from = fromSearch->dateTime(); q.to = toSearch->dateTime(); } if (!titleSearch->text().isEmpty()) { thingsAreChanged = true; q.title = titleSearch->text(); } if (!descriptionSearch->text().isEmpty()) { thingsAreChanged = true; q.description = descriptionSearch->text(); } if (!participantSearch->text().isEmpty()) { thingsAreChanged = true; q.participant = participantSearch->text(); } if (thingsAreChanged) { qDebug() << "sender ut søkesignal"; emit queryArgs(q); } }
void ZoneEntityItem::fetchCollisionGeometryResource() { QUrl hullURL(getCompoundShapeURL()); if (hullURL.isEmpty()) { _shapeResource.reset(); } else { QUrlQuery queryArgs(hullURL); queryArgs.addQueryItem("collision-hull", ""); hullURL.setQuery(queryArgs); _shapeResource = DependencyManager::get<ModelCache>()->getCollisionGeometryResource(hullURL); } }