summaryrefslogtreecommitdiff
path: root/client/debug.cc
diff options
context:
space:
mode:
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();