summaryrefslogtreecommitdiff
path: root/ui/qt/byte_view_text.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-11-06 23:49:26 +0000
committerGerald Combs <gerald@wireshark.org>2012-11-06 23:49:26 +0000
commitad4dc9dfcd9fedd207bfb593f366e8b6b7672ffb (patch)
tree6c6a44b0e7eb0e0af719078121b2abaae8923b6f /ui/qt/byte_view_text.cpp
parent41354fb06c87752efa1b0806bef3d50bcfbe047a (diff)
downloadwireshark-ad4dc9dfcd9fedd207bfb593f366e8b6b7672ffb.tar.gz
Add a comment about improving performance.
svn path=/trunk/; revision=45956
Diffstat (limited to 'ui/qt/byte_view_text.cpp')
-rw-r--r--ui/qt/byte_view_text.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/byte_view_text.cpp b/ui/qt/byte_view_text.cpp
index d4801d8a9d..f0c77457a7 100644
--- a/ui/qt/byte_view_text.cpp
+++ b/ui/qt/byte_view_text.cpp
@@ -100,6 +100,9 @@ void ByteViewText::renderBytes()
return;
}
+ // XXX Even with updates and undo disabled this is slow. Instead of clearing
+ // and filling in the text each time we should probably fill it in once and
+ // use setExtraSelections to set highlighting.
setUpdatesEnabled(false);
textCursor().beginEditBlock();