1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Beginning to work on conditional rendering, just made fix to line following code to speed up horizontal scrolling

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27168 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-29 06:14:36 +00:00
parent aa13a5377c
commit 449a895372
8 changed files with 32 additions and 28 deletions

View file

@ -41,6 +41,7 @@ SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project,
saved = "";
parseStatus = tr("Empty document");
blockUpdate = false;
currentLine = -1;
}
SkinDocument::SkinDocument(QLabel* statusLabel, QString file,
@ -208,8 +209,9 @@ void SkinDocument::cursorChanged()
parseStatus = tr("Errors in document");
statusLabel->setText(parseStatus);
}
else
else if(editor->textCursor().blockNumber() != currentLine)
{
currentLine = editor->textCursor().blockNumber();
emit lineChanged(editor->textCursor().blockNumber() + 1);
}