mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
SolverParameters: Minor change.
This commit is contained in:
1 parent
fe9c348ee0
commit
9fd9bd95f4
3 files changed
+186
-223
No files matched your search
@@ -96,76 +96,6 @@ class TableModel(PamhyrTableModel):
|
||||
self.dataChanged.emit(index, index)
|
||||
return True
|
||||
|
||||
# def add(self, row, parent=QModelIndex()):
|
||||
# self.beginInsertRows(parent, row, row - 1)
|
||||
|
||||
# self._undo.push(
|
||||
# AddCommand(
|
||||
# self._lst, row
|
||||
# )
|
||||
# )
|
||||
|
||||
# self.endInsertRows()
|
||||
# self.layoutChanged.emit()
|
||||
|
||||
# def delete(self, rows, parent=QModelIndex()):
|
||||
# self.beginRemoveRows(parent, rows[0], rows[-1])
|
||||
|
||||
# self._undo.push(
|
||||
# DelCommand(
|
||||
# self._lst, rows
|
||||
# )
|
||||
# )
|
||||
|
||||
# self.endRemoveRows()
|
||||
# self.layoutChanged.emit()
|
||||
|
||||
# def sort(self, _reverse, parent=QModelIndex()):
|
||||
# self.layoutAboutToBeChanged.emit()
|
||||
|
||||
# self._undo.push(
|
||||
# SortCommand(
|
||||
# self._lst, False
|
||||
# )
|
||||
# )
|
||||
|
||||
# self.layoutAboutToBeChanged.emit()
|
||||
# self.layoutChanged.emit()
|
||||
|
||||
# def move_up(self, row, parent=QModelIndex()):
|
||||
# if row <= 0:
|
||||
# return
|
||||
|
||||
# target = row + 2
|
||||
|
||||
# self.beginMoveRows(parent, row - 1, row - 1, parent, target)
|
||||
|
||||
# self._undo_stack.push(
|
||||
# MoveCommand(
|
||||
# self._lst, "up", row
|
||||
# )
|
||||
# )
|
||||
|
||||
# self.endMoveRows()
|
||||
# self.layoutChanged.emit()
|
||||
|
||||
# def move_down(self, index, parent=QModelIndex()):
|
||||
# if row > len(self._lst):
|
||||
# return
|
||||
|
||||
# target = row
|
||||
|
||||
# self.beginMoveRows(parent, row + 1, row + 1, parent, target)
|
||||
|
||||
# self._undo_stack.push(
|
||||
# MoveCommand(
|
||||
# self._lst, "down", row
|
||||
# )
|
||||
# )
|
||||
|
||||
# self.endMoveRows()
|
||||
# self.layoutChanged.emit()
|
||||
|
||||
def undo(self):
|
||||
self._undo.undo()
|
||||
self.layoutChanged.emit()
|
||||
|
||||
Reference in new issue
Block a user