[mythtv] keypressEvent improvement: Add actionEvent in mythuitype class

Xavier Hervy xavier.hervy at bluebottle.com
Sun Nov 23 11:47:22 UTC 2008


I forgot the return value for actionEvent

bool MythUIButton::actionEvent(QString action)
{
    bool handled = false;
    if (action == "SELECT")
    {
        if (!IsEnabled())
            return false;

        if (m_Pushed)
            UnPush();
        else
            Push();
    }
    else
        handled = false;
    return handled;
}



More information about the mythtv-dev mailing list