diff options
| author | Chris Bessent <lost.dragonist@gmail.com> | 2020-01-13 22:41:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-13 22:41:40 -0700 |
| commit | 3fb21b74a9c937f242e6d34105a1b41648cfac7f (patch) | |
| tree | 2ceff7dd71a3237a85051ee1345f64b4e4505733 /src/loglist.cpp | |
| parent | b9ff5cc7dc8b9e338d5a3002db8eb5ca5a6b811b (diff) | |
| parent | 6c6734fcf4f724e0e700cbce137d8b8f50da1e68 (diff) | |
Merge pull request #969 from ModOrganizer2/2_2_2
Pull in 2.2.2.1 changes
Diffstat (limited to 'src/loglist.cpp')
| -rw-r--r-- | src/loglist.cpp | 5 |
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();
|
