Commit b3e1d5ff255a45b96f81e681d8edc3da08807842
- Diff rendering mode:
- inline
- side by side
hooq/XmlToQtScript.cpp
(3 / 1)
|   | |||
| 265 | 265 | case QVariant::Int: | |
| 266 | 266 | return QString::number(parameters.toInt()); | |
| 267 | 267 | case QVariant::String: | |
| 268 | qDebug() << Q_FUNC_INFO << "Before escaping:" << parameters.toString(); | ||
| 269 | qDebug() << Q_FUNC_INFO << "After escaping:" << escapeString(parameters.toString()); | ||
| 268 | 270 | return "\"" + escapeString(parameters.toString()) + "\""; | |
| 269 | 271 | case QVariant::Map: | |
| 270 | 272 | { | |
| … | … | ||
| 414 | 414 | QVariantMap parameters; | |
| 415 | 415 | ||
| 416 | 416 | parameters["key"] = QVariant::fromValue(static_cast<Qt::Key>(attributes().value("key").toString().toInt())); | |
| 417 | parameters["text"] = escapeString(attributes().value("text").toString()); | ||
| 417 | parameters["text"] = attributes().value("text").toString(); | ||
| 418 | 418 | parameters["autoRepeat"] = attributes().value("isAutoRepeat").toString() == "true" ? true : false; | |
| 419 | 419 | parameters["count"] = attributes().value("count").toString().toInt(); | |
| 420 | 420 | parameters["modifiers"] = QVariant::fromValue(Qt::KeyboardModifiers(attributes().value("modifiers").toString().toInt())); |
Comments
Add a new comment:
Login or create an account to post a comment
Add your comment
Please log in to comment

