[PATCH]: wpa_gui-qt4: scroll to bottom of event history viewer for every new event

Kel Modderman kel
Tue Jan 29 22:34:10 PST 2008


Scroll to bottom of the event history treeview widget when every new event
is added to prevent user from having to scroll down to view new events once
the history has grown beyond widgets vertical size.

Signed-off-by: Kel Modderman <kel at otaku42.de>
---
--- a/wpa_supplicant/wpa_gui-qt4/eventhistory.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/eventhistory.cpp
@@ -117,4 +117,5 @@
 {
 	elm->addEvent(msg.getTimestamp().toString("yyyy-MM-dd hh:mm:ss.zzz"),
 		      msg.getMsg());
+	eventListView->scrollToBottom();
 }
---



More information about the Hostap mailing list