fix(Tray): 托盘传感器显示修改

This commit is contained in:
lidg
2026-11-09 18:16:54 +08:00
parent a8b2b31ce7
commit c248954b87
14 changed files with 170 additions and 51 deletions
+4
View File
@@ -11,6 +11,7 @@ class QLabel;
class QButtonGroup;
class QResizeEvent;
class SquareTrayButton;
struct DeviceStatus;
namespace Ui { class RackPage; }
@@ -24,6 +25,7 @@ public:
public slots:
void refresh();
void updateDeviceStatus(const DeviceStatus &status);
signals:
void logRequested(const QString &type, const QString &module, const QString &action,
@@ -48,6 +50,8 @@ private:
QList<Tray> trays;
int selectedTrayId;
int selectedTrayIndex;
bool trayPresenceAvailable = false;
bool trayPresent[6] = {};
};
#endif // RACKPAGE_H