1. TortoiseHg
  2. TortoiseHg
  3. thg

Commits

Yuya Nishihara  committed 6e79957

docklog: eliminate dirty shortcut to delegate request from dock widget

  • Participants
  • Parent commits 3ff59ab
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/docklog.py

View file
         self.closeRequested.emit()
 
 class LogDockWidget(QDockWidget):
+
+    progressReceived = pyqtSignal(QString, object, QString, QString,
+                                  object, object)
+
     def __init__(self, parent=None):
         super(LogDockWidget, self).__init__(parent)
 
 
         self.logte = ConsoleWidget(self)
         self.logte.closeRequested.connect(self.close)
+        self.logte.progressReceived.connect(self.progressReceived)
         self.setWidget(self.logte)
-        for name in ('setRepository', 'progressReceived'):
-            setattr(self, name, getattr(self.logte, name))
+
+    def setRepository(self, repo):
+        self.logte.setRepository(repo)
 
     @pyqtSlot()
     def clear(self):