src/InventoryEquipments.h

Thu, 31 Mar 2022 23:10:57 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 31 Mar 2022 23:10:57 +0200
changeset 97
8283bbf95806
parent 79
e726db72da3c
child 275
f472f9773782
permissions
-rw-r--r--

Stripped down the RangedSlider. It is more compact and still does everything. Base colors (red and green) are fixed inside, also automatisc setting of outer limits. The tooltip shows the current ranges. Still some finetuning to be done.

#ifndef _INVENTORYEQUIPS_H
#define _INVENTORYEQUIPS_H

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

namespace Ui {
class InventoryEquipments;
}

class InventoryEquipments : public QDialog
{
    Q_OBJECT

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

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 *tableEquipments;
    QGroupBox *groupBox;
    QHBoxLayout *horizontalLayout;
    QPushButton *quitButton;
    QPushButton *exportButton;
    QPushButton *importButton;
    QPushButton *insertButton;

    void edit(int recno);
};

#endif

mercurial