#ifndef DEVICEITEM_H #define DEVICEITEM_H #include #include #include "globaldefine.h" #include #include enum DeviceTableField { DeviceTable_Check = 0, DeviceTable_ID, DeviceTable_Online, DeviceTable_IP, DeviceTable_ScreenSize, DeviceTable_Remark, DeviceTable_Brightness, DeviceTable_Power, DeviceTable_Password, DeviceTable_Info, DeviceTable_Screenshot, DeviceTable_End, }; class DeviceItem : public QObject, public QTreeWidgetItem { friend class DevicePanel; Q_OBJECT public: explicit DeviceItem(LoQTreeWidget *parent); void init(); void DeviceItemHttpPost(); LedCard mCard; QPushButton *btnUnlock = nullptr; private: QPushButton *m_bnCardDetailInfo = nullptr; QPushButton *m_bnReadbackPic = nullptr; QLabel *m_ImageOnline=nullptr; LoQTreeWidget *m_parent = nullptr; }; class ImgDlg : public QDialog { Q_OBJECT public: explicit ImgDlg(const QByteArray &, QWidget *parent = 0); QImage mImg; public: void paintEvent(QPaintEvent *) override; }; #endif // DEVICEITEM_H