58 |
public: |
public: |
59 |
|
|
60 |
// Constructor. |
// Constructor. |
61 |
DeviceParam(lscp_param_info_t *pParamInfo = NULL, |
DeviceParam(lscp_param_info_t *pParamInfo = nullptr, |
62 |
const char *pszValue = NULL); |
const char *pszValue = nullptr); |
63 |
|
|
64 |
// Initializer. |
// Initializer. |
65 |
void setParam(lscp_param_info_t *pParamInfo, |
void setParam(lscp_param_info_t *pParamInfo, |
66 |
const char *pszValue = NULL); |
const char *pszValue = nullptr); |
67 |
|
|
68 |
// Info structure field members. |
// Info structure field members. |
69 |
lscp_type_t type; |
lscp_type_t type; |
263 |
|
|
264 |
public: |
public: |
265 |
|
|
266 |
AbstractDeviceParamModel(QObject *pParent = NULL); |
AbstractDeviceParamModel(QObject *pParent = nullptr); |
267 |
|
|
268 |
// Overridden methods from subclass(es) |
// Overridden methods from subclass(es) |
269 |
int rowCount(const QModelIndex& parent = QModelIndex()) const; |
int rowCount(const QModelIndex& parent = QModelIndex()) const; |
293 |
|
|
294 |
public: |
public: |
295 |
|
|
296 |
DeviceParamModel(QObject *pParent = NULL); |
DeviceParamModel(QObject *pParent = nullptr); |
297 |
|
|
298 |
// Overridden methods from subclass(es) |
// Overridden methods from subclass(es) |
299 |
QVariant data(const QModelIndex &index, int role) const; |
QVariant data(const QModelIndex &index, int role) const; |
351 |
|
|
352 |
public: |
public: |
353 |
|
|
354 |
DeviceParamDelegate(QObject *pParent = NULL); |
DeviceParamDelegate(QObject *pParent = nullptr); |
355 |
|
|
356 |
QWidget* createEditor(QWidget *pParent, |
QWidget* createEditor(QWidget *pParent, |
357 |
const QStyleOptionViewItem& option, const QModelIndex& index) const; |
const QStyleOptionViewItem& option, const QModelIndex& index) const; |