summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/models/parsetreemodel.cpp')
-rw-r--r--utils/themeeditor/models/parsetreemodel.cpp8
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,
free(param->data.text);
param->type = skin_tag_parameter::STRING;
- param->data.text = strdup(value.toString().trimmed().toAscii());
+ param->data.text = strdup(value.toString().trimmed().toLatin1());
}
else if(tolower(param->type_code) == 'i')
{
@@ -265,7 +265,7 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value,
return false;
free(element->data);
- element->data = strdup(value.toString().trimmed().toAscii());
+ element->data = strdup(value.toString().trimmed().toLatin1());
}
emit dataChanged(index, index);
@@ -330,7 +330,7 @@ RBScene* ParseTreeModel::render(ProjectModel* project,
if(sbsModel)
sbsModel->deleteLater();
- sbsModel = new ParseTreeModel(QString(sbs.readAll()).toAscii());
+ sbsModel = new ParseTreeModel(QString(sbs.readAll()).toLatin1());
if(sbsModel->root != 0)
{
@@ -391,7 +391,7 @@ void ParseTreeModel::setChildrenUnselectable(QGraphicsItem *root)
root->setFlag(QGraphicsItem::ItemIsSelectable, false);
root->setFlag(QGraphicsItem::ItemIsMovable, false);
- QList<QGraphicsItem*> children = root->children();
+ QList<QGraphicsItem*> children = root->childItems();
for(QList<QGraphicsItem*>::iterator i = children.begin()
; i != children.end(); i++)
setChildrenUnselectable(*i);