src/InventoryMiscs.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 290
93820a8ffbff
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 _INVENTORYMISCS_H
#define _INVENTORYMISCS_H

#include <QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTableWidget>

namespace Ui {
class InventoryMiscs;
}

class InventoryMiscs : public QDialog
{
    Q_OBJECT

public:
    explicit InventoryMiscs(QWidget *parent = nullptr);
    ~InventoryMiscs();

signals:
    void setStatus(QString);

private slots:
    void on_insertButton_clicked();
    void on_editButton_clicked();
    void on_exportButton_clicked();
    void refreshTable(void);

private:
    QGridLayout *gridLayout;
    QTableWidget *tableMiscs;
    QGroupBox *groupBox;
    QHBoxLayout *horizontalLayout;
    QPushButton *quitButton;
    QPushButton *exportButton;
    QPushButton *insertButton;

    void edit(int recno);
};

#endif

mercurial