aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/proto_tree.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-10-24 13:24:23 -0700
committerGerald Combs <gerald@wireshark.org>2014-10-24 22:58:46 +0000
commitceff4edbf04d5725542208a533cc61ffdf7854b2 (patch)
tree416881949db860fe045a75dbfa96d56e89a722e5 /ui/qt/proto_tree.cpp
parent001dbaf76382fafa1b0525bd0b16757b1c675eb0 (diff)
Qt: Refactor ByteViewText.
Instead of subclassing QTextEdit and filling it with the entire contents of our tvbuff, subclass QAbstractScrollArea and draw text by hand only when needed. The new code should be *much* faster. Some code based on QHexView by Even Teran (https://code.google.com/p/qhexview/). To do: - Finish the bit view implementation. Change-Id: Ie44de6870d80711cd44324521a17ab76bcefe5e5 Reviewed-on: https://code.wireshark.org/review/4922 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/proto_tree.cpp')
-rw-r--r--ui/qt/proto_tree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp
index eefa999986..80e3df65b9 100644
--- a/ui/qt/proto_tree.cpp
+++ b/ui/qt/proto_tree.cpp
@@ -94,7 +94,8 @@ proto_tree_draw_node(proto_node *node, gpointer data)
QPalette pal = QApplication::palette();
if (fi && fi->hfinfo) {
if(fi->hfinfo->type == FT_PROTOCOL) {
- item->setData(0, Qt::BackgroundRole, pal.alternateBase());
+ item->setData(0, Qt::BackgroundRole, pal.button());
+ item->setData(0, Qt::ForegroundRole, pal.buttonText());
}
if((fi->hfinfo->type == FT_FRAMENUM) ||