#ifndef DEVICEPARAMSTABLEFORM_H #define DEVICEPARAMSTABLEFORM_H #include #include namespace Ui { class DeviceParamsTableForm; } class DeviceParamsItemDelegate : public QStyledItemDelegate { Q_OBJECT public: explicit DeviceParamsItemDelegate(QObject *parent = nullptr); QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override; void setEditorData(QWidget *editor, const QModelIndex &index) const override; void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override; void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override; protected: bool eventFilter(QObject *obj, QEvent *event) override; }; class DeviceParamsTableForm : public QWidget { Q_OBJECT public: explicit DeviceParamsTableForm(QWidget *parent = nullptr); ~DeviceParamsTableForm(); private slots: void onCfgChannelSelectBtnClicked(); private: Ui::DeviceParamsTableForm *ui; }; #endif // DEVICEPARAMSTABLEFORM_H