|
|
{ | { |
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]; |
|
|
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]; |
|
|
handled = true; | handled = true; |
} | } |
} | } |
} |
|
| |
if (!handled) | if (!handled) |
QPushButton::keyReleaseEvent(e); | QPushButton::keyReleaseEvent(e); |
|
|
QColor origcolor; | QColor origcolor; |
QString helptext; | QString helptext; |
bool arrowAccel; | bool arrowAccel; |
|
|
|
QStringList keyPressActions; |
}; | }; |
| |
class MythCheckBox: public QCheckBox | class MythCheckBox: public QCheckBox |