From cb1e8530279251ff67004d16505c580cc60dfb10 Mon Sep 17 00:00:00 2001
From: angelaschmid <angela.schmid@wolke7.net>
Date: Sat, 31 May 2014 13:33:56 +0200
Subject: [PATCH] MythNetvision: Focus results and update preview.
After a search set focus to the result list.
After the thumbs download finishes, update the preview thumbnail.
---
mythplugins/mythnetvision/mythnetvision/netsearch.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/mythplugins/mythnetvision/mythnetvision/netsearch.cpp b/mythplugins/mythnetvision/mythnetvision/netsearch.cpp
index 1e08b22..20a8c00 100644
a
|
b
|
void NetSearch::searchFinished(void) |
429 | 429 | |
430 | 430 | ResultItem::resultList list = item->GetVideoList(); |
431 | 431 | populateResultList(list); |
| 432 | |
| 433 | SetFocusWidget(m_searchResultList); |
| 434 | slotItemChanged(); // explicitly needed when going to next page and |
| 435 | // only text (no thumbnail) is available |
432 | 436 | } |
433 | 437 | |
434 | 438 | void NetSearch::searchTimeout(Search *) |
… |
… |
void NetSearch::customEvent(QEvent *event) |
832 | 836 | if (item && item->GetText() == title) |
833 | 837 | { |
834 | 838 | item->SetImage(file); |
| 839 | |
| 840 | // Update preview thumbnail |
| 841 | if(m_searchResultList->GetItemCurrent() == item) |
| 842 | slotItemChanged(); |
835 | 843 | } |
836 | 844 | } |
837 | 845 | else if ((MythEvent::Type)(event->type()) == MythEvent::MythEventMessage) |