mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
themeeditor: Make it compile with current Qt5.
- Replace use of obsolete members with their replacements. - Fix type issue that requires explicitly creating the right object now. - Update project file to work with Qt5. Change-Id: I3af2b1520796e977e58c0a01e165c77c469a23b9
This commit is contained in:
parent
ff38666a19
commit
fa330c109d
10 changed files with 35 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue