summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2010-08-17 12:32:02 +0000
committerdeva <deva>2010-08-17 12:32:02 +0000
commitb23c3c321b80449aa22e14d40115d1e4a764a1b3 (patch)
tree22f67c5dc82ab59d930cc6192f982beee1ce10cd
parent8bf85a6919e4d0ea93eb7bce8b394f4b5219ee59 (diff)
Make alternative 'scroll to bottom on insert' implementation.
-rw-r--r--client/debug.cc3
1 files changed, 2 insertions, 1 deletions
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 <QVBoxLayout>
#include <QCloseEvent>
#include <QSettings>
+#include <QAbstractItemView>
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();
}