diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-05 13:04:53 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-06 12:31:22 -0800 |
commit | 8dfa3f6db3eda8bce432afb7407efe2d8822ebbd (patch) | |
tree | 2a1c6f629fc161c33da6e7515c42fad138a0d6de /stats/statsview.cpp | |
parent | 4ab9f1c6b06204285267e79b5ed993514e0213e2 (diff) | |
download | subsurface-8dfa3f6db3eda8bce432afb7407efe2d8822ebbd.tar.gz |
statistics: draw title of axes
Easy enough to implement, but one weirdness:
To get the height of the rotated text, one has to access the
width() member of the boundingRect. I'm not sure if that makes
sense, but so be it.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsview.cpp')
-rw-r--r-- | stats/statsview.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stats/statsview.cpp b/stats/statsview.cpp index fdf6e9dc3..394620d13 100644 --- a/stats/statsview.cpp +++ b/stats/statsview.cpp @@ -186,8 +186,7 @@ void StatsView::updateTitlePos() template <typename T, class... Args> T *StatsView::createAxis(const QString &title, Args&&... args) { - // TODO: set title - T *res = new T(chart, std::forward<Args>(args)...); + T *res = new T(chart, title, std::forward<Args>(args)...); axes.emplace_back(res); return res; } |