From 449a895372354f8c9abeec28a147f6b88d53a269 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Tue, 29 Jun 2010 06:14:36 +0000 Subject: 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 --- utils/themeeditor/gui/skindocument.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/gui/skindocument.cpp') diff --git a/utils/themeeditor/gui/skindocument.cpp b/utils/themeeditor/gui/skindocument.cpp index f8206e1..28e5297 100644 --- a/utils/themeeditor/gui/skindocument.cpp +++ b/utils/themeeditor/gui/skindocument.cpp @@ -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); } -- cgit v1.1