Ticket #12072: 0002-MythNetvision-Focus-results-and-update-preview.patch

File 0002-MythNetvision-Focus-results-and-update-preview.patch, 1.5 KB (added by angela.schmid@…, 6 years ago)
  • mythplugins/mythnetvision/mythnetvision/netsearch.cpp

    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) 
    429429
    430430    ResultItem::resultList list = item->GetVideoList();
    431431    populateResultList(list);
     432
     433    SetFocusWidget(m_searchResultList);
     434    slotItemChanged();  // explicitly needed when going to next page and
     435                        // only text (no thumbnail) is available
    432436}
    433437
    434438void NetSearch::searchTimeout(Search *)
    void NetSearch::customEvent(QEvent *event) 
    832836        if (item && item->GetText() == title)
    833837        {
    834838            item->SetImage(file);
     839
     840            // Update preview thumbnail
     841            if(m_searchResultList->GetItemCurrent() == item)
     842                slotItemChanged();
    835843        }
    836844    }
    837845    else if ((MythEvent::Type)(event->type()) == MythEvent::MythEventMessage)