Commit c850fe73 authored by Michael Büsch's avatar Michael Büsch

symtab-model: Implement revert

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 0cb30736
......@@ -39,6 +39,10 @@ class SymTabModel(QAbstractTableModel):
self.__needSourceUpdate = True
self.sourceChanged.emit()
def revert(self):
QAbstractTableModel.revert(self)
self.__needSourceUpdate = True
def getSymTab(self):
return self.symTab
......@@ -213,6 +217,9 @@ class SymTabView(QTableView):
def setSymTab(self, symTab):
self.setModel(SymTabModel(symTab))
def getSymTab(self):
return self.model().getSymTab()
def getSource(self):
return self.model().getSource()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment