mirror of https://gitlab.com/pamhyr/pamhyr2
geometry: Profile: Diasble column 4.
parent
8f183b7078
commit
d35f26f362
|
|
@ -110,12 +110,6 @@ class TableEditableModel(QAbstractTableModel):
|
|||
else:
|
||||
return _translate("MainWindowProfile", "Rive droite")
|
||||
|
||||
if index.column() == 4:
|
||||
if role == Qt.FontRole:
|
||||
font = QFont()
|
||||
font.setBold(True)
|
||||
return font
|
||||
|
||||
return QVariant()
|
||||
|
||||
def headerData(self, section, orientation, role=Qt.DisplayRole):
|
||||
|
|
@ -185,12 +179,12 @@ class TableEditableModel(QAbstractTableModel):
|
|||
return self.createIndex(row, column, QModelIndex())
|
||||
|
||||
def flags(self, index):
|
||||
flg = Qt.ItemIsSelectable | Qt.ItemIsEnabled
|
||||
flg = Qt.ItemIsSelectable
|
||||
|
||||
if index.column() == 4:
|
||||
return flg
|
||||
|
||||
return Qt.ItemIsEditable | flg
|
||||
return Qt.ItemIsEditable | Qt.ItemIsEnabled | flg
|
||||
|
||||
def insert_row(self, row, parent=QModelIndex()):
|
||||
self.beginInsertRows(parent, row, row - 1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue