def loadDict(self, dic):
    self.mDocument = dic
    if (self.mDocument is not None):
        self.beginResetModel()
        if isinstance(self.mDocument, list):
            self.mRootItem.load(list(self.mDocument))
        else:
            self.mRootItem = self.mRootItem.load(self.mDocument)
        self.endResetModel()
        return True
    return False
def loadDict(self, dic):
    self.mDocument = dic
    if (self.mDocument is not None):
        self.beginResetModel()
        if isinstance(self.mDocument, list):
            self.mRootItem.load(list(self.mDocument))
        else:
            self.mRootItem = self.mRootItem.load(self.mDocument)
        self.endResetModel()
        return True
    return False