summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAL <ga12@hotmail.it>2020-01-10 16:07:58 +0100
committerAL <ga12@hotmail.it>2020-01-10 16:07:58 +0100
commitc5b809b486424c79c16a7c11ead20fc202bbef9b (patch)
treeef0033a079c3b4da0fdbc79ab2e224fe95f38468
parentae22b41f96529af4ac2e6c2512d8c0eb165d097b (diff)
Fixed log timestamp size for bigger font.
-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();