diff options
Diffstat (limited to 'utils/themeeditor/models/parsetreemodel.cpp')
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp index 8d8855a5a6..a7f04ffbf2 100644 --- a/utils/themeeditor/models/parsetreemodel.cpp +++ b/utils/themeeditor/models/parsetreemodel.cpp | |||
@@ -271,7 +271,8 @@ bool ParseTreeModel::setData(const QModelIndex &index, const QVariant &value, | |||
271 | } | 271 | } |
272 | 272 | ||
273 | QGraphicsScene* ParseTreeModel::render(ProjectModel* project, | 273 | QGraphicsScene* ParseTreeModel::render(ProjectModel* project, |
274 | DeviceState* device, const QString* file) | 274 | DeviceState* device, |
275 | SkinDocument* doc, const QString* file) | ||
275 | { | 276 | { |
276 | scene->clear(); | 277 | scene->clear(); |
277 | 278 | ||
@@ -327,14 +328,14 @@ QGraphicsScene* ParseTreeModel::render(ProjectModel* project, | |||
327 | 328 | ||
328 | if(sbsModel.root != 0) | 329 | if(sbsModel.root != 0) |
329 | { | 330 | { |
330 | RBRenderInfo sbsInfo(&sbsModel, project, &settings, device, | 331 | RBRenderInfo sbsInfo(&sbsModel, project, doc, &settings, device, |
331 | sbsScreen); | 332 | sbsScreen); |
332 | 333 | ||
333 | sbsScreen = new RBScreen(sbsInfo, remote); | 334 | sbsScreen = new RBScreen(sbsInfo, remote); |
334 | scene->addItem(sbsScreen); | 335 | scene->addItem(sbsScreen); |
335 | 336 | ||
336 | sbsInfo = RBRenderInfo(&sbsModel, project, &settings, device, | 337 | sbsInfo = RBRenderInfo(&sbsModel, project, doc, &settings, |
337 | sbsScreen); | 338 | device, sbsScreen); |
338 | sbsModel.root->render(sbsInfo); | 339 | sbsModel.root->render(sbsInfo); |
339 | } | 340 | } |
340 | 341 | ||
@@ -342,7 +343,7 @@ QGraphicsScene* ParseTreeModel::render(ProjectModel* project, | |||
342 | } | 343 | } |
343 | 344 | ||
344 | RBScreen* screen = 0; | 345 | RBScreen* screen = 0; |
345 | RBRenderInfo info(this, project, &settings, device, screen, sbsScreen); | 346 | RBRenderInfo info(this, project, doc, &settings, device, screen, sbsScreen); |
346 | 347 | ||
347 | /* Adding the screen */ | 348 | /* Adding the screen */ |
348 | if(sbsScreen) | 349 | if(sbsScreen) |
@@ -353,7 +354,8 @@ QGraphicsScene* ParseTreeModel::render(ProjectModel* project, | |||
353 | if(!sbsScreen) | 354 | if(!sbsScreen) |
354 | scene->addItem(screen); | 355 | scene->addItem(screen); |
355 | 356 | ||
356 | info = RBRenderInfo(this, project, &settings, device, screen, sbsScreen); | 357 | info = RBRenderInfo(this, project, doc, &settings, device, screen, |
358 | sbsScreen); | ||
357 | 359 | ||
358 | 360 | ||
359 | /* Rendering the tree */ | 361 | /* Rendering the tree */ |