-void InputWidget::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) {
- QItemSelectionRange changedArea(topLeft, bottomRight);
- QModelIndex currentIndex = selectionModel()->currentIndex();
- if(changedArea.contains(currentIndex)) {
- ui.inputEdit->setEnabled(currentIndex.data(NetworkModel::ItemActiveRole).value<bool>());
- }
-};
-
-