diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-13 18:18:26 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-18 12:00:12 -0700 |
commit | 9de15dec6073aa668d41f7d8727606e05e4c3f6e (patch) | |
tree | 03b74839de840e199735d58cd6bf5ba96bbb609e /qt-ui/graphicsview-common.cpp | |
parent | 17c97b921fb96d2849a027abe259230c336f1d83 (diff) | |
download | subsurface-9de15dec6073aa668d41f7d8727606e05e4c3f6e.tar.gz |
Profile: support grayscale plotting
This patch adds the getColor() helper function to
ProfileGraphicsView and EventItem so that retrieving
a certain color can depend on a 'isGrayscale' flag.
This flag is private and only set by
ProfileGraphicsView::setPrintMode() at this point.
EventItem also now accepts 'grayscale' as a constructor
argument.
A couple of side modifications are:
- move setBackgroundBrush() to ProfileGraphicsView::plot()
- set the same pen color as brush color for the dot in the
'!' symbol inside EventItem::EventItem().
TODO: look for color issues when printing using the
custom grayscale table
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/graphicsview-common.cpp')
0 files changed, 0 insertions, 0 deletions