diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-14 12:33:03 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | c74975632e4ed6a63773b893b164055e4b17920f (patch) | |
tree | 11da1489317009f04b898deff07b01e1e81ca7cb /stats/statsgrid.h | |
parent | 218c844ad4fa3f562c375b97694025f6cdaa3ca1 (diff) | |
download | subsurface-c74975632e4ed6a63773b893b164055e4b17920f.tar.gz |
statistics: draw background using a QSGRectangle node
Currently, the background was drawn as solid color onto
the chart-scene. This is of course incompatible with doing
the grid as QSGNodes. Therefore, make the scene image
transparent and use a QSGRectangle as background color.
We could also simply omit the background and show the
widget's background. However, that would mean setting
the background color in two seperate code paths
(desktop and mobile). I found no way of directly setting
the background of the QQuickItem.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsgrid.h')
0 files changed, 0 insertions, 0 deletions