# Path: XulDebugTool/ui/widget/model/Property.py
# class Property(object):
#     def __init__(self, key, obj=None, parent=None):
#         self.key = key
#         if obj is not None:
#             self.ref = weakref.ref(obj)
#         self.parent = parent
#         self.children = []
# 
#         if parent is not None and isinstance(parent, Property):
#             parent.addChild(self)
# 
#     def isValid(self):
#         return False
# 
#     def addChild(self, child):
#         self.children.append(child)
# 
#     def getKey(self):
#         return self.key
# 
#     def getValue(self):
#         return getattr(self.ref(), self.key)
# 
#     def setValue(self, value):
#         setattr(self.ref(), self.key, value)
# 
#     def childCount(self):
#         return len(self.children)
# 
#     def child(self, row=None):
#         if row is not None:
#             return self.children[row]
#         else:
#             return self.children
# 
#     def parent(self):
#         return self.parent
# 
#     def row(self):
#         if self.parent is not None and isinstance(self.parent, Property):
#             return self.parent.child().index(self)
#         else:
#             return 0
# 
#     def createEditor(self, parent, option, index):
#         raise NotImplementedError
# 
#     def setEditorData(self, editor, data):
#         raise NotImplementedError
# 
#     def editorData(self, editor):
#         raise NotImplementedError


from PyQt5.QtCore import QAbstractItemModel, Qt, QModelIndex
from PyQt5.QtGui import QColor, QPixmap, QIcon
from XulDebugTool.ui.widget.model.Property import Property
#!/usr/bin/python
# -*- coding: utf-8 -*-



class PropertyModel(QAbstractItemModel):
    def __init__(self, parent=None):
        super(PropertyModel, self).__init__(parent)

# Path: XulDebugTool/ui/widget/model/Property.py
# class Property(object):
#     def __init__(self, key, obj=None, parent=None):
#         self.key = key
#         if obj is not None:
#             self.ref = weakref.ref(obj)
#         self.parent = parent
#         self.children = []
# 
#         if parent is not None and isinstance(parent, Property):
#             parent.addChild(self)
# 
#     def isValid(self):
#         return False
# 
#     def addChild(self, child):
#         self.children.append(child)
# 
#     def getKey(self):
#         return self.key
# 
#     def getValue(self):
#         return getattr(self.ref(), self.key)
# 
#     def setValue(self, value):
#         setattr(self.ref(), self.key, value)
# 
#     def childCount(self):
#         return len(self.children)
# 
#     def child(self, row=None):
#         if row is not None:
#             return self.children[row]
#         else:
#             return self.children
# 
#     def parent(self):
#         return self.parent
# 
#     def row(self):
#         if self.parent is not None and isinstance(self.parent, Property):
#             return self.parent.child().index(self)
#         else:
#             return 0
# 
#     def createEditor(self, parent, option, index):
#         raise NotImplementedError
# 
#     def setEditorData(self, editor, data):
#         raise NotImplementedError
# 
#     def editorData(self, editor):
#         raise NotImplementedError


# Path: XulDebugTool/ui/widget/model/PropertyModel.py
from PyQt5.QtCore import QAbstractItemModel, Qt, QModelIndex
from PyQt5.QtGui import QColor, QPixmap, QIcon
from XulDebugTool.ui.widget.model.Property import Property

#!/usr/bin/python
# -*- coding: utf-8 -*-



class PropertyModel(QAbstractItemModel):
    def __init__(self, parent=None):
        super(PropertyModel, self).__init__(parent)

        self.rootItem = Property('Root', None, None)