Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 7
0
 def columnCount(self, parent):
     return BreakpointModel.columnCount(self, parent) + 1
Esempio n. 8
0
 def columnCount(self, parent):
     return BreakpointModel.columnCount(self, parent) + 1