summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/skindocument.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-29 06:14:36 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-29 06:14:36 +0000
commit449a895372354f8c9abeec28a147f6b88d53a269 (patch)
treea158ecad4d7aefe397601e6c3b10f9330c04da7d /utils/themeeditor/gui/skindocument.cpp
parentaa13a5377ce4b982110fc44f2f9a6636d81e8d8d (diff)
downloadrockbox-449a895372354f8c9abeec28a147f6b88d53a269.zip
rockbox-449a895372354f8c9abeec28a147f6b88d53a269.tar.gz
rockbox-449a895372354f8c9abeec28a147f6b88d53a269.tar.bz2
rockbox-449a895372354f8c9abeec28a147f6b88d53a269.tar.xz
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
Diffstat (limited to 'utils/themeeditor/gui/skindocument.cpp')
-rw-r--r--utils/themeeditor/gui/skindocument.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}