Bug 406498

Summary: error: no type named 'setBadgeLabelText' in namespace 'QtMac'
Product: [Frameworks and Libraries] frameworks-knotifications Reporter: Yurii Kolesnykov <yurii.kolesnykov>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WORKSFORME    
Severity: critical CC: groot, kde, kdelibs-bugs, nate, rjvbertin, sl1pkn07, yurii.kolesnykov
Priority: NOR    
Version: 5.57.0   
Target Milestone: ---   
Platform: Homebrew (macOS)   
OS: macOS   
URL: https://github.com/KDE-mac/homebrew-kde/issues/291
Latest Commit: Version Fixed In:

Description Yurii Kolesnykov 2019-04-13 10:46:28 UTC
SUMMARY
kf5-knotifications build fails with error on macOS

STEPS TO REPRODUCE
1. brew install kf5-knotifications

OBSERVED RESULT
../src/kstatusnotifieritem.cpp:609:16: error: no type named 'setBadgeLabelText' in namespace 'QtMac'
        QtMac::setBadgeLabelText(QString());
        ~~~~~~~^
../src/kstatusnotifieritem.cpp:963:16: error: no member named 'setBadgeLabelText' in namespace 'QtMac'
        QtMac::setBadgeLabelText(QString(QChar(0x26a0))/*QStringLiteral("!")*/);
        ~~~~~~~^
../src/kstatusnotifieritem.cpp:1020:16: error: no type named 'setBadgeLabelText' in namespace 'QtMac'
        QtMac::setBadgeLabelText(QString());

EXPECTED RESULT
No build errors

SOFTWARE/OS VERSIONS

macOS: 10.14.5.beta2
Linux/KDE Plasma: 
KDE Frameworks Version: 5.57
Qt Version: 5.12.2

ADDITIONAL INFORMATION

Full log: https://git.io/fjmGe
Comment 1 Gustavo Alvarez 2019-04-18 20:33:04 UTC
same here but in mojave 10.14.4

greetings
Comment 2 groot 2019-04-20 19:58:36 UTC
In Qt 5.12.2 that method is behind QT_DEPRECATED_SINCE(5, 12), so if you're compiling with extra picky flags that might be the issue. Also double-check if Q_OS_OSX and Q_OS_MACOS still match.
Comment 3 Gustavo Alvarez 2019-04-20 21:22:18 UTC
ok, seems add -DQT_DISABLE_DEPRECATED_BEFORE=0x050b00 do the trick

spurt tons of warnings, but builds ok

thanks and greetings
Comment 4 Gustavo Alvarez 2019-04-20 21:44:07 UTC
@groot one question, why you know is a deprecated method?, i see in the Qt documentation (https://doc-snapshots.qt.io/qt5-5.12/qtmac.html#setBadgeLabelText) and i can't see it the deprecation

greetings
Comment 5 groot 2019-04-21 14:32:44 UTC
I fetched the zip file of qtmacextras 5.12.2 and looked in the source.
Comment 6 Nate Graham 2021-08-09 17:06:11 UTC
Is this still relevant with the latest version?
Comment 7 Bug Janitor Service 2021-08-24 04:36:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2021-09-08 04:35:47 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!