1
0
Fork 0
forked from len0rd/rockbox

Changed build subdirectory

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26492 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-02 20:36:30 +00:00
parent 87174d83fd
commit e5a3ec2baf
6 changed files with 130 additions and 8 deletions

View file

@ -30,7 +30,9 @@ EditorWindow::EditorWindow(QWidget *parent) :
{
ui->setupUi(this);
tree = 0;
/* Establishing the parse tree */
tree = new ParseTreeModel(ui->code->document()->toPlainText().toAscii());
ui->parseTree->setModel(tree);
/* Connecting the buttons */
QObject::connect(ui->code, SIGNAL(cursorPositionChanged()),
@ -41,11 +43,7 @@ EditorWindow::EditorWindow(QWidget *parent) :
void EditorWindow::updateTree()
{
if(tree)
delete tree;
tree = new ParseTreeModel(ui->code->document()->toPlainText().toAscii());
ui->parseTree->setModel(tree);
tree->changeTree(ui->code->document()->toPlainText().toAscii());
ui->parseTree->expandAll();
}