Пример #1
0
    def flags(self, index):
        if index.column() < BreakpointModel.columnCount(self, None):
            return BreakpointModel.flags(self, index)

        f = Qt.ItemIsSelectable | Qt.ItemIsEnabled

        return f
Пример #2
0
    def flags(self, index):
        if index.column() < BreakpointModel.columnCount(self, None):
            return BreakpointModel.flags(self, index)

        f = Qt.ItemIsSelectable | Qt.ItemIsEnabled

        return f
Пример #3
0
    def headerData(self, section, orientation, role):
        if section < BreakpointModel.columnCount(self, None):
            return BreakpointModel.headerData(self, section, orientation, role)

        ret = None

        if orientation == Qt.Horizontal:
            if role == Qt.DisplayRole:
                if section == self.columnCount(None) - 1:
                    ret = "Traced Variables"

        return ret
Пример #4
0
    def headerData(self, section, orientation, role):
        if section < BreakpointModel.columnCount(self, None):
            return BreakpointModel.headerData(self, section, orientation, role)

        ret = None

        if orientation == Qt.Horizontal:
            if role == Qt.DisplayRole:
                if section == self.columnCount(None) - 1:
                    ret = "Traced Variables"

        return ret
Пример #5
0
    def data(self, index, role):
        if index.column() < BreakpointModel.columnCount(self, None):
            return BreakpointModel.data(self, index, role)

        ret = None

        tp = self.breakpoints[index.row()]

        if role == Qt.DisplayRole:
            if index.column() == self.columnCount(None) - 1:
                ret = ", ".join(tp.tracedVariables)

        return ret
Пример #6
0
    def data(self, index, role):
        if index.column() < BreakpointModel.columnCount(self, None):
            return BreakpointModel.data(self, index, role)

        ret = None

        tp = self.breakpoints[index.row()]

        if role == Qt.DisplayRole:
            if index.column() == self.columnCount(None) - 1:
                ret = ", ".join(tp.tracedVariables)

        return ret
Пример #7
0
 def columnCount(self, parent):
     return BreakpointModel.columnCount(self, parent) + 1
Пример #8
0
 def columnCount(self, parent):
     return BreakpointModel.columnCount(self, parent) + 1