mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
Updated the qt part of dupeguru to adjust to the latest column reorganization.
This commit is contained in:
19
qt/pe/app.py
19
qt/pe/app.py
@@ -18,6 +18,7 @@ from ..base.app import DupeGuru as DupeGuruBase
|
||||
from .block import getblocks
|
||||
from .details_dialog import DetailsDialog
|
||||
from .result_window import ResultWindow
|
||||
from .results_model import ResultsModel
|
||||
from .preferences import Preferences
|
||||
from .preferences_dialog import PreferencesDialog
|
||||
|
||||
@@ -70,6 +71,12 @@ class DupeGuru(DupeGuruBase):
|
||||
LOGO_NAME = 'logo_pe'
|
||||
NAME = __appname__
|
||||
|
||||
DETAILS_DIALOG_CLASS = DetailsDialog
|
||||
RESULT_WINDOW_CLASS = ResultWindow
|
||||
RESULT_MODEL_CLASS = ResultsModel
|
||||
PREFERENCES_CLASS = Preferences
|
||||
PREFERENCES_DIALOG_CLASS = PreferencesDialog
|
||||
|
||||
def _setup(self):
|
||||
self.model.directories.fileclasses = [File]
|
||||
DupeGuruBase._setup(self)
|
||||
@@ -80,15 +87,3 @@ class DupeGuru(DupeGuruBase):
|
||||
self.model.scanner.match_scaled = self.prefs.match_scaled
|
||||
self.model.scanner.threshold = self.prefs.filter_hardness
|
||||
|
||||
def _create_details_dialog(self, parent):
|
||||
return DetailsDialog(parent, self)
|
||||
|
||||
def _create_result_window(self):
|
||||
return ResultWindow(app=self)
|
||||
|
||||
def _create_preferences(self):
|
||||
return Preferences()
|
||||
|
||||
def _create_preferences_dialog(self, parent):
|
||||
return PreferencesDialog(parent, self)
|
||||
|
||||
|
||||
@@ -11,18 +11,6 @@ from core.scanner import ScanType
|
||||
from ..base.preferences import Preferences as PreferencesBase
|
||||
|
||||
class Preferences(PreferencesBase):
|
||||
# (width, is_visible)
|
||||
COLUMNS_DEFAULT_ATTRS = [
|
||||
(200, True), # name
|
||||
(180, True), # path
|
||||
(60, True), # size
|
||||
(40, False), # kind
|
||||
(100, True), # dimensions
|
||||
(120, False), # modification
|
||||
(60, True), # match %
|
||||
(80, False), # dupe count
|
||||
]
|
||||
|
||||
def _load_specific(self, settings):
|
||||
get = self.get_value
|
||||
self.scan_type = get('ScanType', self.scan_type)
|
||||
|
||||
Reference in New Issue
Block a user