summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/loglist.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/loglist.cpp b/src/loglist.cpp
index c884be49..5d6710c7 100644
--- a/src/loglist.cpp
+++ b/src/loglist.cpp
@@ -162,12 +162,9 @@ LogList::LogList(QWidget* parent)
{
setModel(&LogModel::instance());
- const QFontMetrics fm(font());
- const int timestampWidth = fm.horizontalAdvance("00:00:00.000");
-
header()->setMinimumSectionSize(0);
header()->resizeSection(0, 20);
- header()->resizeSection(1, timestampWidth + 8);
+ header()->setSectionResizeMode(1, QHeaderView::ResizeToContents);
setAutoScroll(true);
scrollToBottom();