docs: def setModelData( self, editor, model, index ):
          """
          Sets the data for the given index from the editor's value.
          
          :param      editor | <QWidget>
                      model  | <QAbstractItemModel>
                      index  | <QModelIndex>
          """
          tree        = self.parent()
          querywidget = tree.parent()
          factory     = querywidget.factory()
          item        = tree.itemFromIndex(index)
          
          value = factory.editorData(editor)
          item.setValue(value)