first commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user