Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 105521
Collapse All | Expand All

(-)libs/libmyth/mythwidgets.cpp (-5 / +5 lines)
Lines 934-942 Link Here
934
{
934
{
935
    bool handled = false;
935
    bool handled = false;
936
    QStringList actions;
936
    QStringList actions;
937
    keyPressActions.clear();
938
937
    if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e,
939
    if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e,
938
                                                     actions))
940
                                                     actions))
939
    {
941
    {
942
        keyPressActions = actions;
943
940
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
944
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
941
        {
945
        {
942
            QString action = actions[i];
946
            QString action = actions[i];
Lines 970-979 Link Here
970
void MythPushButton::keyReleaseEvent(QKeyEvent *e)
974
void MythPushButton::keyReleaseEvent(QKeyEvent *e)
971
{
975
{
972
    bool handled = false;
976
    bool handled = false;
973
    QStringList actions;
977
    QStringList actions = keyPressActions;
974
    if (gContext->GetMainWindow()->TranslateKeyPress("qt", (QKeyEvent *)e,
975
                                                     actions))
976
    {
977
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
978
        for (unsigned int i = 0; i < actions.size() && !handled; i++)
978
        {
979
        {
979
            QString action = actions[i];
980
            QString action = actions[i];
Lines 984-990 Link Here
984
                handled = true;
985
                handled = true;
985
            }
986
            }
986
        }
987
        }
987
    }
988
988
989
    if (!handled)
989
    if (!handled)
990
        QPushButton::keyReleaseEvent(e);
990
        QPushButton::keyReleaseEvent(e);
(-)libs/libmyth/mythwidgets.h (+2 lines)
Lines 260-265 Link Here
260
    QColor origcolor;
260
    QColor origcolor;
261
    QString helptext;
261
    QString helptext;
262
    bool arrowAccel;
262
    bool arrowAccel;
263
264
    QStringList keyPressActions;
263
};
265
};
264
266
265
class MythCheckBox: public QCheckBox
267
class MythCheckBox: public QCheckBox

Return to bug 105521