From b23c3c321b80449aa22e14d40115d1e4a764a1b3 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Aug 2010 12:32:02 +0000 Subject: Make alternative 'scroll to bottom on insert' implementation. --- client/debug.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/debug.cc b/client/debug.cc index 632db97..282cf93 100644 --- a/client/debug.cc +++ b/client/debug.cc @@ -32,6 +32,7 @@ #include #include #include +#include static const char * const class_str[] = { "debug", "error", "warn", "log" }; @@ -92,7 +93,7 @@ void DebugWindow::log(const char *func, const char *file, const int line, if(cl == _log) item->setBackground(QBrush(QColor(200, 230, 200))); lst->addItem(item); - lst->scrollToItem(item); + lst->scrollToBottom(); } -- cgit v1.2.3