summaryrefslogtreecommitdiff
path: root/ui/qt/sparkline_delegate.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-08-04 00:37:04 +0000
committerGerald Combs <gerald@wireshark.org>2012-08-04 00:37:04 +0000
commit1500f3bd4280e190fc5bbcc0e8e131560bd5b24c (patch)
tree2ba9a40f949060fd39790faac3ac79e920a93655 /ui/qt/sparkline_delegate.cpp
parented6e29eac668afef6cfeaedc147626477a812025 (diff)
downloadwireshark-1500f3bd4280e190fc5bbcc0e8e131560bd5b24c.tar.gz
Fix sparlines on Windows. Unfortunately this means listing device IDs
(for now at least). svn path=/trunk/; revision=44258
Diffstat (limited to 'ui/qt/sparkline_delegate.cpp')
-rw-r--r--ui/qt/sparkline_delegate.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/qt/sparkline_delegate.cpp b/ui/qt/sparkline_delegate.cpp
index f62c095cb9..178e8180c5 100644
--- a/ui/qt/sparkline_delegate.cpp
+++ b/ui/qt/sparkline_delegate.cpp
@@ -31,14 +31,12 @@ void SparkLineDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opt
foreach (val, *points) {
if (val > max) max = val;
}
+
foreach (val, *points) {
fpoints.append(QPointF(idx, (qreal) content_h - (val * content_h / max) ));
idx = idx + 1;
}
- if (fpoints.count() > 0) {
- }
-
painter->save();
painter->setRenderHint(QPainter::Antialiasing, true);
painter->translate(option.rect.x() + SL_MARGIN, option.rect.y() + SL_MARGIN);