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

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

    From 9cd173979e3c06715a4d860b06ab99403b28d91f Mon Sep 17 00:00:00 2001
    From: angelaschmid <angela.schmid@wolke7.net>
    Date: Fri, 21 Feb 2014 18:18:50 +0100
    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.
    ---
     .../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 f7a17f5..1670bdb 100755
    a b void NetSearch::searchFinished(void) 
    447447
    448448    ResultItem::resultList list = item->GetVideoList();
    449449    populateResultList(list);
     450
     451    SetFocusWidget(m_searchResultList);
     452    slotItemChanged();  // explicitly needed when going to next page and
     453                        // only text (no thumbnail) is available
    450454}
    451455
    452456void NetSearch::searchTimeout(Search *)
    void NetSearch::customEvent(QEvent *event) 
    850854        if (item && item->GetText() == title)
    851855        {
    852856            item->SetImage(file);
     857                       
     858            // Update preview thumbnail
     859            if(m_searchResultList->GetItemCurrent() == item)
     860                slotItemChanged();
    853861        }
    854862    }
    855863    else if ((MythEvent::Type)(event->type()) == MythEvent::MythEventMessage)