src/ChartCarbonate.h

Mon, 23 Jan 2023 17:23:10 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 23 Jan 2023 17:23:10 +0100
changeset 472
db8ad1c2112b
parent 371
d03a426e0b6b
permissions
-rw-r--r--

If a new image for a product is loaded, check if the path is available. If not, use the home directory.

#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