summaryrefslogtreecommitdiff
path: root/src/loglist.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-02 05:33:57 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-02 05:33:57 -0400
commit712c8687c208629e22ef7b4d8015c899c2ea053a (patch)
treea6a1db591d81bad1957c2cd58fdac9a8303a2087 /src/loglist.cpp
parent4099efcb5bfd6932ed2a510aa0e4318fffff121b (diff)
changed old whatsthis for prerelease
apparently, QFontMetrics::width() is deprecated
Diffstat (limited to 'src/loglist.cpp')
-rw-r--r--src/loglist.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loglist.cpp b/src/loglist.cpp
index 192913b6..c884be49 100644
--- a/src/loglist.cpp
+++ b/src/loglist.cpp
@@ -162,7 +162,8 @@ LogList::LogList(QWidget* parent)
{
setModel(&LogModel::instance());
- const int timestampWidth = QFontMetrics(font()).width("00:00:00.000");
+ const QFontMetrics fm(font());
+ const int timestampWidth = fm.horizontalAdvance("00:00:00.000");
header()->setMinimumSectionSize(0);
header()->resizeSection(0, 20);