summaryrefslogtreecommitdiff
path: root/ui/qt/sparkline_delegate.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-08-06 14:50:48 -0700
committerAnders Broman <a.broman58@gmail.com>2014-08-08 05:57:01 +0000
commit4da7570809f7ea303ca15368d2c818fafc1a70f5 (patch)
treea3864c351c5349af1c22e35a593aa472093d49de /ui/qt/sparkline_delegate.h
parent40d5c503a7b184c09105d37db33d4ec324416185 (diff)
downloadwireshark-4da7570809f7ea303ca15368d2c818fafc1a70f5.tar.gz
Use a QTreeWidget instead of QTableWidget.
Even though Qt's widget naming suggests otherwise, a QTreeWidget is usually a better choice for tables than QTableWidget. The former gives you a nice, clean Plain Old Table while the latter gives you something that looks and acts like a spreadsheet. In this particular instance using QTreeWidget also gives us the option of adding sub-items with detailed information. Do so for attached addresses. Allow sorting by traffic while we're here. Simplify the column hiding logic. Make sure the sparkline delegate isn't editable. Change-Id: Ia36ba2e12c1c0cb86ae5b2154e6afcf6549ae049 Reviewed-on: https://code.wireshark.org/review/3466 Reviewed-by: Gerald Combs <gerald@wireshark.org> Tested-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/sparkline_delegate.h')
-rw-r--r--ui/qt/sparkline_delegate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/sparkline_delegate.h b/ui/qt/sparkline_delegate.h
index 358d99218f..5e020cf703 100644
--- a/ui/qt/sparkline_delegate.h
+++ b/ui/qt/sparkline_delegate.h
@@ -34,6 +34,7 @@ protected:
const QModelIndex &index) const;
QSize sizeHint(const QStyleOptionViewItem &option,
const QModelIndex &index) const;
+ QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
signals: