mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
f713858ba4
The printFontScale is used to scale up fonts (and icons) when rendering to high-DPI devices. With absolute scaling, this will also be used to scale the size of different chart regions, line thickness, etc. Therefore, give it an more appropriate name. "Device pixel ratio", which is a well established term, seems to appropriately describe the concept. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
28 lines
647 B
C++
28 lines
647 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef TANKITEM_H
|
|
#define TANKITEM_H
|
|
|
|
#include "profile-widget/divelineitem.h"
|
|
#include "core/gas.h"
|
|
#include <QGraphicsRectItem>
|
|
#include <QBrush>
|
|
|
|
struct dive;
|
|
class DiveCartesianAxis;
|
|
|
|
class TankItem : public QGraphicsRectItem
|
|
{
|
|
public:
|
|
explicit TankItem(const DiveCartesianAxis &axis, double dpr);
|
|
void setData(const struct plot_info *plotInfo, const struct dive *d);
|
|
|
|
private:
|
|
void createBar(int startTime, int stopTime, struct gasmix gas);
|
|
const DiveCartesianAxis &hAxis;
|
|
int plotEndTime;
|
|
double dpr;
|
|
QBrush air, nitrox, oxygen, trimix;
|
|
QList<QGraphicsRectItem *> rects;
|
|
};
|
|
|
|
#endif // TANKITEM_H
|