QStringList keys = e.attribute("keyframes").split(';', QString::SkipEmptyParts);
QStringList newKeyFrames;
foreach(const QString &str, keys) {
QStringList keys = e.attribute("keyframes").split(';', QString::SkipEmptyParts);
QStringList newKeyFrames;
foreach(const QString &str, keys) {
- int pos = str.section(':', 0, 0).toInt();
- double val = str.section(':', 1, 1).toDouble();
+ int pos = str.section('=', 0, 0).toInt();
+ double val = str.section('=', 1, 1).toDouble();
}
//kDebug()<<"ORIGIN: "<<keys<<", FIXED: "<<newKeyFrames;
e.setAttribute("keyframes", newKeyFrames.join(";"));
}
//kDebug()<<"ORIGIN: "<<keys<<", FIXED: "<<newKeyFrames;
e.setAttribute("keyframes", newKeyFrames.join(";"));
double factor = e.attribute("factor", "1").toDouble();
double offset = e.attribute("offset", "0").toDouble();
for (int j = 0; j < values.count(); j++) {
double factor = e.attribute("factor", "1").toDouble();
double offset = e.attribute("offset", "0").toDouble();
for (int j = 0; j < values.count(); j++) {
- QString pos = values.at(j).section(':', 0, 0);
- double val = (values.at(j).section(':', 1, 1).toDouble() - offset) / factor;
+ QString pos = values.at(j).section('=', 0, 0);
+ double val = (values.at(j).section('=', 1, 1).toDouble() - offset) / factor;
if (ui.import_position->isChecked()) {
if (ui.import_size->isChecked()) {
foreach(QString key, keyframeList) {
if (ui.import_position->isChecked()) {
if (ui.import_size->isChecked()) {
foreach(QString key, keyframeList) {
result.append(';');
}
}
}
else if (ui.import_size->isChecked()) {
foreach(QString key, keyframeList) {
result.append(';');
}
}
}
else if (ui.import_size->isChecked()) {
foreach(QString key, keyframeList) {