From 819e9d404d2a72652764970651a66c4c9849c9c9 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 17 Aug 2010 11:23:02 +0000 Subject: Scroll improvement. Don't show console on startup. --- client/debug.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/debug.cc') diff --git a/client/debug.cc b/client/debug.cc index 3138cf4..632db97 100644 --- a/client/debug.cc +++ b/client/debug.cc @@ -53,6 +53,7 @@ DebugWindow::DebugWindow() { setLayout(new QVBoxLayout()); lst = new QListWidget(); + lst->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); layout()->addWidget(lst); QSettings settings("Aasimon.org", "Pracro"); @@ -78,9 +79,10 @@ void DebugWindow::log(const char *func, const char *file, const int line, // Remove trailing newlines. while(msg.endsWith("\n")) msg = msg.left(msg.length() - 1); + ch = ch; QString txt; - txt.sprintf("[%s] %s %s:%s:%d ", - class_str[(unsigned)cl], ch, file, func, line); + txt.sprintf("[%s] %s:%s:%d ", + class_str[(unsigned)cl], file, func, line); txt += " : " + msg; QListWidgetItem *item = new QListWidgetItem(); -- cgit v1.2.3