diff options
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp index 37ec9b01da..cc1e9777bd 100644 --- a/utils/themeeditor/models/parsetreemodel.cpp +++ b/utils/themeeditor/models/parsetreemodel.cpp | |||
@@ -242,7 +242,7 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value, | |||
242 | free(param->data.text); | 242 | free(param->data.text); |
243 | 243 | ||
244 | param->type = skin_tag_parameter::STRING; | 244 | param->type = skin_tag_parameter::STRING; |
245 | param->data.text = strdup(value.toString().trimmed().toAscii()); | 245 | param->data.text = strdup(value.toString().trimmed().toLatin1()); |
246 | } | 246 | } |
247 | else if(tolower(param->type_code) == 'i') | 247 | else if(tolower(param->type_code) == 'i') |
248 | { | 248 | { |
@@ -265,7 +265,7 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value, | |||
265 | return false; | 265 | return false; |
266 | 266 | ||
267 | free(element->data); | 267 | free(element->data); |
268 | element->data = strdup(value.toString().trimmed().toAscii()); | 268 | element->data = strdup(value.toString().trimmed().toLatin1()); |
269 | } | 269 | } |
270 | 270 | ||
271 | emit dataChanged(index, index); | 271 | emit dataChanged(index, index); |
@@ -330,7 +330,7 @@ RBScene* ParseTreeModel::render(ProjectModel* project, | |||
330 | 330 | ||
331 | if(sbsModel) | 331 | if(sbsModel) |
332 | sbsModel->deleteLater(); | 332 | sbsModel->deleteLater(); |
333 | sbsModel = new ParseTreeModel(QString(sbs.readAll()).toAscii()); | 333 | sbsModel = new ParseTreeModel(QString(sbs.readAll()).toLatin1()); |
334 | 334 | ||
335 | if(sbsModel->root != 0) | 335 | if(sbsModel->root != 0) |
336 | { | 336 | { |
@@ -391,7 +391,7 @@ void ParseTreeModel::setChildrenUnselectable(QGraphicsItem *root) | |||
391 | root->setFlag(QGraphicsItem::ItemIsSelectable, false); | 391 | root->setFlag(QGraphicsItem::ItemIsSelectable, false); |
392 | root->setFlag(QGraphicsItem::ItemIsMovable, false); | 392 | root->setFlag(QGraphicsItem::ItemIsMovable, false); |
393 | 393 | ||
394 | QList<QGraphicsItem*> children = root->children(); | 394 | QList<QGraphicsItem*> children = root->childItems(); |
395 | for(QList<QGraphicsItem*>::iterator i = children.begin() | 395 | for(QList<QGraphicsItem*>::iterator i = children.begin() |
396 | ; i != children.end(); i++) | 396 | ; i != children.end(); i++) |
397 | setChildrenUnselectable(*i); | 397 | setChildrenUnselectable(*i); |