1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-03-20 06:11:39 +00:00

Decoupled app in core.app from apps in qt.app and core.app_cocoa. Instead of subclassing it, they now hold a reference to it while fulfilling the role of core.app's "view".

This commit is contained in:
Virgil Dupras
2011-09-20 15:06:29 -04:00
parent 841b249b67
commit f730f4f55a
15 changed files with 162 additions and 170 deletions

View File

@@ -15,10 +15,10 @@ from core.gui.result_table import ResultTable as ResultTableModel
class ResultsModel(Table):
def __init__(self, app, view):
model = ResultTableModel(self, app)
model = ResultTableModel(self, app.model)
self._app = app
self._data = app.data
self._delta_columns = app.data.DELTA_COLUMNS
self._data = app.model.data
self._delta_columns = app.model.data.DELTA_COLUMNS
Table.__init__(self, model, view)
self.model.connect()