summaryrefslogtreecommitdiff
path: root/client/debug.cc
diff options
context:
space:
mode:
authordeva <deva>2010-08-17 11:23:02 +0000
committerdeva <deva>2010-08-17 11:23:02 +0000
commit819e9d404d2a72652764970651a66c4c9849c9c9 (patch)
tree2f2d8a60d6829cccb8a8c51424ea2bb074b78509 /client/debug.cc
parentc788e6a1b174afd154e589a76885731c2fc19723 (diff)
Scroll improvement. Don't show console on startup.
Diffstat (limited to 'client/debug.cc')
-rw-r--r--client/debug.cc6
1 files changed, 4 insertions, 2 deletions
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();