mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
144e81e8f8
Move the various font objects the the StatsTheme structure to enable different font weights for different themes. For the dark theme, switch to a bold font, because the thin white font was barely visible. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
26 lines
636 B
C++
26 lines
636 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
// A small box displaying statistics information, notably
|
|
// for a scatter-plot item or a bar in a bar chart.
|
|
#ifndef INFORMATION_BOX_H
|
|
#define INFORMATION_BOX_H
|
|
|
|
#include "chartitem.h"
|
|
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
struct dive;
|
|
class StatsView;
|
|
|
|
// Information window showing data of highlighted dive
|
|
struct InformationBox : ChartRectItem {
|
|
InformationBox(StatsView &);
|
|
void setText(const std::vector<QString> &text, QPointF pos);
|
|
void setPos(QPointF pos);
|
|
int recommendedMaxLines() const;
|
|
private:
|
|
const StatsTheme &theme; // Set once in constructor.
|
|
double width, height;
|
|
};
|
|
|
|
#endif
|