개정판 b41d1fca
issue #655: add next position
DTI_PID/DTI_PID/ItemDataFormatDialog.py | ||
---|---|---|
226 | 226 |
table.setHorizontalHeaderItem(table.columnCount() - 1, QTableWidgetItem(self.emptyCol)) |
227 | 227 |
table.setItem(0, table.columnCount() - 1, QTableWidgetItem('add header')) |
228 | 228 |
if self.selectedCol is not None: |
229 |
table.horizontalHeader().moveSection(table.columnCount() - 1, table.horizontalHeader().visualIndex(self.selectedCol[0].currentColumn())) |
|
229 |
table.horizontalHeader().moveSection(table.columnCount() - 1, table.horizontalHeader().visualIndex(self.selectedCol[0].currentColumn()) + 1)
|
|
230 | 230 |
else: |
231 | 231 |
table.horizontalHeader().moveSection(table.columnCount() - 1, 1) |
232 | 232 |
table.setCurrentCell(0, table.columnCount() - 1) |
... | ... | |
297 | 297 |
if self.selectedCol is None: |
298 | 298 |
table.horizontalHeader().moveSection(table.columnCount() - 1, 1) |
299 | 299 |
else: |
300 |
table.horizontalHeader().moveSection(table.columnCount() - 1, table.horizontalHeader().visualIndex(self.selectedCol[0].currentColumn())) |
|
300 |
table.horizontalHeader().moveSection(table.columnCount() - 1, table.horizontalHeader().visualIndex(self.selectedCol[0].currentColumn()) + 1)
|
|
301 | 301 |
else: |
302 | 302 |
table.horizontalHeader().moveSection(table.columnCount() - 1, loc) |
303 | 303 |
table.setCurrentCell(0, table.columnCount() - 1) |
내보내기 Unified diff