View | Details | Raw Unified
Collapse All | Expand All

(-) libs/libmyth/mythwidgets.h (-5 / +7 lines)
 Lines 934-942    Link Here 
{
{
    bool handled = false;
    bool handled = false;
    QStringList actions;
    QStringList actions;
    keyPressActions.clear();
    if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e,
    if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e,
                                                     actions))
                                                     actions))
    {
    {
        keyPressActions = actions;
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
        {
        {
            QString action = actions[i];
            QString action = actions[i];
 Lines 970-979    Link Here 
void MythPushButton::keyReleaseEvent(QKeyEvent *e)
void MythPushButton::keyReleaseEvent(QKeyEvent *e)
{
{
    bool handled = false;
    bool handled = false;
    QStringList actions;
    QStringList actions = keyPressActions;
    if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e,
                                                     actions))
    {
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
        {
        {
            QString action = actions[i];
            QString action = actions[i];
 Lines 984-990    Link Here 
                handled = true;
                handled = true;
            }
            }
        }
        }
    }
    if (!handled)
    if (!handled)
        QPushButton::keyReleaseEvent(e);
        QPushButton::keyReleaseEvent(e);
 Lines 260-265    Link Here 
    QColor origcolor;
    QColor origcolor;
    QString helptext;
    QString helptext;
    bool arrowAccel;
    bool arrowAccel;
    QStringList keyPressActions;
};
};
class MythCheckBox: public QCheckBox
class MythCheckBox: public QCheckBox