Made sure, that the networkmonitor scrolls to the bottom when new entries are added. 5_1_x

Sat, 09 Apr 2011 15:08:10 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Apr 2011 15:08:10 +0200
branch
5_1_x
changeset 976
b639b17375b7
parent 973
27f8621a3e9f
child 980
7626b3605b2d

Made sure, that the networkmonitor scrolls to the bottom when new entries are added.

E5Network/E5NetworkMonitor.py file | annotate | diff | comparison | revisions
--- a/E5Network/E5NetworkMonitor.py	Sat Apr 09 14:53:59 2011 +0200
+++ b/E5Network/E5NetworkMonitor.py	Sat Apr 09 15:08:10 2011 +0200
@@ -103,6 +103,7 @@
         self.__model = E5RequestModel(networkAccessManager, self)
         self.__proxyModel.setSourceModel(self.__model)
         self.requestsList.setModel(self.__proxyModel)
+        self.__proxyModel.rowsInserted.connect(self.requestsList.scrollToBottom)
         self.requestsList.selectionModel().currentChanged[QModelIndex, QModelIndex]\
             .connect(self.__currentChanged)
         

eric ide

mercurial