| 719 | } |
| 720 | |
| 721 | QWidget* AppStreamList::GetItemByStreamId(const std::string& stream_id) { |
| 722 | int count = stream_list_->count(); |
| 723 | for (int i = 0; i < count; i++) { |
| 724 | auto item = stream_list_->item(i); |
| 725 | auto widget = stream_list_->itemWidget(item); |
| 726 | if (widget->objectName().toStdString() == stream_id) { |
| 727 | return widget; |
| 728 | } |
| 729 | } |
| 730 | return nullptr; |
| 731 | } |
| 732 | |
| 733 | void AppStreamList::LoadStreamItems() { |
| 734 | context_->PostUITask([=, this]() { |
nothing calls this directly
no outgoing calls
no test coverage detected