src/ChartiSpindel.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 333
499c95108bbd
child 438
e06b04ef1579
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 _CHARTISPINDEL_H
#define _CHARTISPINDEL_H

#include "MainWindow.h"

#include <QDialog>
#include <QDialogButtonBox>

class Callout;

namespace Ui {
class ChartiSpindel;
}

class ChartiSpindel : public QDialog
{
    Q_OBJECT

private slots:
    void savePNG();

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

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

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

#endif

mercurial