mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 14:41:39 +00:00
Under Qt, added a 'marked' column thus uncoupling the marked' attribute from the 'filename' column.
Also, added the ability to sort by 'marked' status.
This commit is contained in:
@@ -7,19 +7,16 @@
|
||||
|
||||
from qtlib.column import Column
|
||||
from ..base.results_model import ResultsModel as ResultsModelBase
|
||||
from core_se.result_table import ResultTable
|
||||
|
||||
# Little hack to remove the 'marked' column which isn't there in the Qt GUI.
|
||||
del ResultTable.COLUMNS[0]
|
||||
|
||||
class ResultsModel(ResultsModelBase):
|
||||
COLUMNS = [
|
||||
Column('name',defaultWidth=200),
|
||||
Column('folder_path',defaultWidth=180),
|
||||
Column('size',defaultWidth=60),
|
||||
Column('extension',defaultWidth=40),
|
||||
Column('mtime',defaultWidth=120),
|
||||
Column('percentage',defaultWidth=60),
|
||||
Column('words',defaultWidth=120),
|
||||
Column('dupe_count',defaultWidth=80),
|
||||
Column('marked', defaultWidth=30),
|
||||
Column('name', defaultWidth=200),
|
||||
Column('folder_path', defaultWidth=180),
|
||||
Column('size', defaultWidth=60),
|
||||
Column('extension', defaultWidth=40),
|
||||
Column('mtime', defaultWidth=120),
|
||||
Column('percentage', defaultWidth=60),
|
||||
Column('words', defaultWidth=120),
|
||||
Column('dupe_count', defaultWidth=80),
|
||||
]
|
||||
Reference in New Issue
Block a user