Files
ssp/pages/squaretraybutton.h
T

27 lines
622 B
C++
Raw Normal View History

2026-08-18 09:40:43 +08:00
#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);
2026-08-20 11:22:55 +08:00
void setPlanned(bool planned);
2026-08-18 09:40:43 +08:00
QSize sizeHint() const override;
QSize minimumSizeHint() const override;
protected:
void paintEvent(QPaintEvent *event) override;
private:
int m_trayId;
2026-08-20 11:22:55 +08:00
bool m_planned;
2026-08-18 09:40:43 +08:00
};
#endif // SQUARETRAYBUTTON_H