src/ChartiSpindel.h

Sun, 12 Feb 2023 13:58:36 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 12 Feb 2023 13:58:36 +0100
changeset 494
49ac23d25f61
parent 438
e06b04ef1579
permissions
-rw-r--r--

In monitor iSpindel: in the chart calculate the ranges, do't let the toolkit do that. Save the path for chart image download in the user settings. In the tooltip for the battery voltage line, also show the remaining battery capacity. In the monitor window show the battery capacity digit instead of allways 0. Updated the translations.

#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;
    QLineSeries *temperature, *density, *battery;
};

#endif

mercurial