first commit

This commit is contained in:
lidg
2026-08-18 09:40:43 +08:00
commit 0c4fd6844c
70 changed files with 8721 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#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);
QSize sizeHint() const override;
QSize minimumSizeHint() const override;
protected:
void paintEvent(QPaintEvent *event) override;
private:
int m_trayId;
};
#endif // SQUARETRAYBUTTON_H