[kmail2] [Bug 377521] regression: system tray icon no longer shows number of new mails
Kamil Dudka
bugzilla_noreply at kde.org
Thu Mar 21 14:08:11 GMT 2019
https://bugs.kde.org/show_bug.cgi?id=377521
--- Comment #25 from Kamil Dudka <kdudka at redhat.com> ---
Comment on attachment 114942
--> https://bugs.kde.org/attachment.cgi?id=114942
patch to reenable numbers, v18.04.3
I am not able to compile kmail-18.12.3 with this patch against up2date qt. The
build fails with this error:
/var/tmp/paludis/kde-apps-kmail-18.12.3/work/kmail-18.12.3/src/kmsystemtray.cpp:
In member function 'void KMail::KMSystemTray::updateCount(int)':
/var/tmp/paludis/kde-apps-kmail-18.12.3/work/kmail-18.12.3/src/kmsystemtray.cpp:175:31:
error: 'class QFontMetrics' has no member named 'width'; did you mean
'maxWidth'?
const int width = qfm.width(count < 100 ? QStringLiteral("99")
^~~~~
maxWidth
I was able to google up a page saying that QFontMetrics::width() is obsolete:
https://doc.qt.io/qt-5/qfontmetrics-obsolete.html
... but the page does not suggest any replacement for that method.
Any idea how to make it build again?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list