summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2020-01-10 08:41:10 -0700
committerGitHub <noreply@github.com>2020-01-10 08:41:10 -0700
commit07e5ce1e0e0c398d018e69eff2f4654b60db4a0d (patch)
treeef0033a079c3b4da0fdbc79ab2e224fe95f38468 /src
parentae22b41f96529af4ac2e6c2512d8c0eb165d097b (diff)
parentc5b809b486424c79c16a7c11ead20fc202bbef9b (diff)
Merge pull request #967 from Al12rs/master
Fixed log timestamp size for bigger font.
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();