src/ChartCarbonate.h

Tue, 26 Jul 2022 14:26:50 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 26 Jul 2022 14:26:50 +0200
changeset 371
d03a426e0b6b
parent 332
146874d7bb47
permissions
-rw-r--r--

On the fermenter, iSpindel, carbonation and brewday chart a tooltip with values is shown wheren hovering over the most important data lines. Changed the vertical to horzontal screen layout and added a save button to save the graph as .png image.

#ifndef _CHARTCARBONATE_H
#define _CHARTCARBONATE_H

#include "MainWindow.h"

#include <QDialog>
#include <QDialogButtonBox>

class Callout;

namespace Ui {
class ChartCarbonate;
}

class ChartCarbonate : public QDialog
{
    Q_OBJECT

private slots:
    void savePNG();

public slots:
    void tooltip(QPointF point, bool state);

public:
    explicit ChartCarbonate(QString code, QString name, QWidget *parent = 0);
    ~ChartCarbonate();

private:
    QChartView *chartView;
    QChart *chart;
    Callout *t_tooltip = 0;
    QSplineSeries *temperature, *pressure;
};

#endif

mercurial