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

[#115 state:fixed] Re-factored the data columns (and delta columns) and made the Dimensions column a delta one.

This commit is contained in:
Virgil Dupras
2011-01-29 11:07:33 +01:00
parent c885cb35d8
commit da41d07dae
19 changed files with 85 additions and 95 deletions

View File

@@ -18,7 +18,7 @@ class ResultsModel(Table):
model = ResultTableModel(self, app)
self._app = app
self._data = app.data
self._delta_columns = app.DELTA_COLUMNS
self._delta_columns = app.data.DELTA_COLUMNS
Table.__init__(self, model, view)
self.model.connect()
@@ -63,7 +63,7 @@ class ResultsModel(Table):
def headerData(self, section, orientation, role):
if orientation == Qt.Horizontal and role == Qt.DisplayRole and section < len(self._data.COLUMNS):
return self._data.COLUMNS[section]['display']
return self._data.COLUMNS[section].display
return None
def setData(self, index, value, role):