Elson Wei committed 79b3233

cmdui: add LogWidget.clearLog() slot to clear the log

Subclasses can override this slot to add some actions.

  • Participants
  • Parent commits 6f6a56e

Comments (0)

Files changed (1)


         return iter(self._markers[l] for l in str(label).split()
                     if l in self._markers)
+    @pyqtSlot()
+    def clearLog(self):
+        """This slot can be overridden by subclass to do more actions"""
+        self.clear()
 class Widget(QWidget):
     """An embeddable widget for running Mercurial command"""