forked from len0rd/rockbox
Theme Editor: Working on rendering viewports, display will now show %V(...) viewports as red rectangles over backdrop or background color
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26940 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
62622277dc
commit
d8827b5ff1
11 changed files with 317 additions and 6 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "parsetreemodel.h"
|
||||
#include "symbols.h"
|
||||
#include "rbscreen.h"
|
||||
#include "rbrenderinfo.h"
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
@ -280,5 +281,12 @@ QGraphicsScene* ParseTreeModel::render(ProjectModel* project)
|
|||
RBScreen* screen = new RBScreen(project);
|
||||
scene->addItem(screen);
|
||||
|
||||
RBRenderInfo info(this, project, screen);
|
||||
|
||||
/* Rendering the tree */
|
||||
if(root)
|
||||
root->render(info);
|
||||
|
||||
|
||||
return scene;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue