| 161 | } |
| 162 | |
| 163 | QString KeyAction::programAction(const QString& onPress, const QString& onRelease, int stop){ |
| 164 | // URL-encode the commands and place them in the string (":" and "+" are both replaced, so they won't interfere) |
| 165 | return "$program:" + QString::fromUtf8(QUrl::toPercentEncoding(onPress.trimmed())) + "+" + QString::fromUtf8(QUrl::toPercentEncoding(onRelease.trimmed())) + QString("+%1").arg(stop); |
| 166 | } |
| 167 | |
| 168 | const static int ANIM_ONCE = 0x1, ANIM_KRSTOP = 0x2; |
| 169 |
nothing calls this directly
no outgoing calls
no test coverage detected