Files
ssp/pages/squaretraybutton.h

29 lines
697 B
C++

#ifndef SQUARETRAYBUTTON_H
#define SQUARETRAYBUTTON_H
#include <QAbstractButton>
class SquareTrayButton : public QAbstractButton
{
public:
explicit SquareTrayButton(int trayIndex, int loadedCount, QWidget *parent = nullptr);
void setTrayInfo(int trayId, const QString &code, int loadedCount,
const QString &status, bool databasePresent,
bool sensorPresent);
void setPlanned(bool planned);
QSize sizeHint() const override;
QSize minimumSizeHint() const override;
protected:
void paintEvent(QPaintEvent *event) override;
private:
int m_trayId;
bool m_planned;
bool m_sensorPresent;
};
#endif // SQUARETRAYBUTTON_H