mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
geometry: Profile: Diasble column 4.
This commit is contained in:
1 parent
8f183b7078
commit
d35f26f362
1 file changed
+2
-8
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user