<table><tr><td style="">kossebau added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25660">View Revision</a></tr></table><br /><div><div><p>Just as reminder:<br />
When keeping the use of the macro flags, make sure to</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">also set the <tt style="background: #ebebeb; font-size: 13px;">*_DEPRECATED_WARNINGS_SINCE</tt> flags to 0x060000, otherwise deprecation warnings for newer API will no longer be shown, due to default set by <tt style="background: #ebebeb; font-size: 13px;">*_DISABLE_DEPRECATED_BEFORE*</tt></li>
<li class="remarkup-list-item">remove the <tt style="background: #ebebeb; font-size: 13px;">if (EXISTS "${CMAKE_SOURCE_DIR}/.git")</tt> wrapper, to ensure released builds see the same API as developer builds (chance of running otherwise into method overloads/implicit conversions)</li>
</ul>
<p>This would be the recommended use to control limit of deprecated API not visible to compiler and limit of until which version use of deprecated API will be warned about:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">add_definitions(
# hide deprecated API of Qt <= 5.9
-DQT_DISABLE_DEPRECATED_BEFORE=0x050900
# enable warnings for API up to Qt 6.0
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
# hide deprecated API of KF <= 5.48
-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x053000
# enable warnings for API up to KF 6.0
-DKF_DEPRECATED_WARNINGS_SINCE=0x060000
)</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R294 KBookmarks</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25660">https://phabricator.kde.org/D25660</a></div></div><br /><div><strong>To: </strong>nicolasfella, Frameworks, dfaure<br /><strong>Cc: </strong>mlaurent, bcooksley, kossebau, dfaure, apol, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>