diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-02 05:33:57 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-02 05:33:57 -0400 |
| commit | 712c8687c208629e22ef7b4d8015c899c2ea053a (patch) | |
| tree | a6a1db591d81bad1957c2cd58fdac9a8303a2087 /src/loglist.cpp | |
| parent | 4099efcb5bfd6932ed2a510aa0e4318fffff121b (diff) | |
changed old whatsthis for prerelease
apparently, QFontMetrics::width() is deprecated
Diffstat (limited to 'src/loglist.cpp')
| -rw-r--r-- | src/loglist.cpp | 3 |
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);
|
