Ticket #9392: mythtv-0-24-lcd-update-menu.diff

File mythtv-0-24-lcd-update-menu.diff, 1.2 KB (added by Michael Zanetti <michael_zanetti@…>, 10 years ago)

patch to make the main menu always update the LCD display on aboutToShow()

  • mythtv/libs/libmythui/myththemedmenu.cpp

    diff --git a/mythtv/libs/libmythui/myththemedmenu.cpp b/mythtv/libs/libmythui/myththemedmenu.cpp
    index ced04ae..1d38d31 100644
    a b bool MythThemedMenu::keyPressEvent(QKeyEvent *event) 
    279279void MythThemedMenu::aboutToShow()
    280280{
    281281    MythScreenType::aboutToShow();
     282    m_buttonList->updateLCD();
    282283}
    283284
    284285void MythThemedMenu::ShowMenu()
  • mythtv/libs/libmythui/mythuibuttonlist.h

    diff --git a/mythtv/libs/libmythui/mythuibuttonlist.h b/mythtv/libs/libmythui/mythuibuttonlist.h
    index 89475d6..eb0457d 100644
    a b class MPUBLIC MythUIButtonList : public MythUIType 
    162162    void RemoveItem(MythUIButtonListItem *item);
    163163
    164164    void SetLCDTitles(const QString &title, const QString &columnList = "");
     165    void updateLCD(void);
    165166
    166167  public slots:
    167168    void Select();
    class MPUBLIC MythUIButtonList : public MythUIType 
    210211    void SetPositionArrowStates(void);
    211212    void ItemVisible(MythUIButtonListItem *item);
    212213
    213     void updateLCD(void);
    214 
    215214    void SetActive(bool active);
    216215
    217216    int PageUp(void);