mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
c8ba273079
Subclass `treemodel.FileTreeModel` for the purposes of the diff dialog. Rewrite diff output parsing. Add sorting through `QSortFilterProxyModel`. * src/vorta/views/diff_result.py (DiffResult.__init__): Remove doubled if statement. * src/vorta/views/diff_result.py : Rename `DiffResult` to `DiffResultDialog`. * src/vorta/views/diff_result.py (DiffTree.__init__): Remove the use of `QVariant`. Since python has no type enforcement `QVariant` is not needed. * src/vorta/views/diff_result.py (DiffTree): Subclass `treemodel.FileTreeModel` and add additional info tooltip. * src/vorta/views/diff_result.py (parse_diff_json): Some changes for use with new model. * src/vorta/views/diff_result.py (parse_diff_lines): Full regex based line parsing and other modifications to go with the new model. * src/vorta/views/diff_result.py (FileType): Enum of possible file types. * src/vorta/views/diff_result.py (ChangeType): Enum of possible change types. Currently all are mapped to `ADDED`, `MODIFIED` and `REMOVED`. * src/vorta/views/diff_result.py (calc_size): Rename to `size_to_byte`. * src/vorta/assets/UI/diffresult.ui : Move `alternatingRowColours` to the .ui file. * src/vorta/views/diff_result.py (DiffResultDialog): Move `alternatingRowColours` to the .ui file. * tests/test_diff.py : Fix tests for diff parser. * src/vorta/views/diff_result.py : Connect to `sorted` of `DiffSortProxyModel` to reveal selected items in view. * src/vorta/views/partials/treemodel.py : Add `FileTreeSortProxyModel` with abstract code. * src/vorta/views/diff_result.py (DiffSortProxyModel): Implement `FileTreeSortProxyModel`. * src/vorta/views/diff_result.py (DiffItem): This variable holds the type `FileSystemItem[DiffData]`. |
||
---|---|---|
.. | ||
borg_json_output | ||
network_manager | ||
profile_exports | ||
__init__.py | ||
conftest.py | ||
test_archives.py | ||
test_borg.py | ||
test_diff.py | ||
test_import_export.py | ||
test_lock.py | ||
test_misc.py | ||
test_notifications.py | ||
test_profile.py | ||
test_repo.py | ||
test_schedule.py | ||
test_scheduler.py | ||
test_source.py | ||
test_treemodel.py | ||
test_utils.py |