mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-19 04:12:29 +12:00
Adds userID and other stuff - correctly
This commit is contained in:
parent
07b17ab2e9
commit
239095a2e3
|
@ -180,12 +180,11 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||
self.mdlPersosInfos.takeColumn(i.row()+1)
|
||||
|
||||
def changeCurrentPerso(self, trash=None):
|
||||
for i in range(self.mdlPersosInfos.columnCount()):
|
||||
idx = self.lstPersos.currentIndex()
|
||||
pid = idx.sibling(idx.row(), 1)
|
||||
pid2 = self.mdlPersosInfos.item(i, 0)
|
||||
self.tblPersoInfos.setColumnHidden(i, i<>0 and pid <> pid2)
|
||||
#self.tblPersoInfos.horizontalHeader().resizeSections(QHeaderView.Stretch)
|
||||
idx = self.lstPersos.currentIndex()
|
||||
pid = self.mdlPersos.item(idx.row(), 1).text()
|
||||
for c in range(self.mdlPersosInfos.columnCount()):
|
||||
pid2 = self.mdlPersosInfos.item(0, c).text()
|
||||
self.tblPersoInfos.setColumnHidden(c, c <> 0 and pid <> pid2)
|
||||
|
||||
self.resizePersosInfos()
|
||||
|
||||
|
|
Loading…
Reference in a new issue