diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-08-04 00:37:04 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-08-04 00:37:04 +0000 |
commit | 1500f3bd4280e190fc5bbcc0e8e131560bd5b24c (patch) | |
tree | 2ba9a40f949060fd39790faac3ac79e920a93655 /ui/qt/sparkline_delegate.cpp | |
parent | ed6e29eac668afef6cfeaedc147626477a812025 (diff) | |
download | wireshark-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.cpp | 4 |
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); |