Files
ssp/pages/squaretraybutton.h
T
2026-08-20 11:22:55 +08:00

27 lines
622 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 present);
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;
};
#endif // SQUARETRAYBUTTON_H