mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-01-22 06:37:17 +00:00
Adapted the Qt codebase to the addition of core.gui.result_tree and core.gui.stats_label.
This commit is contained in:
@@ -13,8 +13,11 @@ class DetailsPanel(GUIObject):
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
self._table = []
|
||||
|
||||
def connect(self):
|
||||
GUIObject.connect(self)
|
||||
self._refresh()
|
||||
self.connect()
|
||||
self.view.refresh()
|
||||
|
||||
#--- Private
|
||||
def _refresh(self):
|
||||
|
||||
@@ -53,7 +53,9 @@ class DirectoryTree(GUIObject, Tree):
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
Tree.__init__(self)
|
||||
self.connect()
|
||||
|
||||
def connect(self):
|
||||
GUIObject.connect(self)
|
||||
self._refresh()
|
||||
self.view.refresh()
|
||||
|
||||
|
||||
@@ -54,11 +54,13 @@ class ResultTree(GUIObject, Tree):
|
||||
self._power_marker = False
|
||||
self._delta_values = False
|
||||
self._sort_descriptors = (0, True)
|
||||
self.connect()
|
||||
|
||||
#--- Override
|
||||
def connect(self):
|
||||
GUIObject.connect(self)
|
||||
self._refresh()
|
||||
self.view.refresh()
|
||||
|
||||
#--- Override
|
||||
def _select_nodes(self, nodes):
|
||||
Tree._select_nodes(self, nodes)
|
||||
self.app._select_dupes(map(attrgetter('_dupe'), nodes))
|
||||
|
||||
@@ -10,9 +10,8 @@
|
||||
from .base import GUIObject
|
||||
|
||||
class StatsLabel(GUIObject):
|
||||
def __init__(self, view, app):
|
||||
GUIObject.__init__(self, view, app)
|
||||
self.connect()
|
||||
def connect(self):
|
||||
GUIObject.connect(self)
|
||||
self.view.refresh()
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user