<table><tr><td style="">marten created this revision.<br />marten added a reviewer: Frameworks.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />marten requested review of this revision.
</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/D19332">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The functions QProcess::setReadChannelMode() and QProcess::readChannelMode() are obsolete, but were not specially treated in any way in earlier Qt versions.  In 5.13 they are actually disabled in the header files, using QT_DEPRECATED_SINCE(5, 13).  KDE PIM optimistically sets QT_DISABLE_DEPRECATED_BEFORE=0x060000 (since May 2017), so the build fails because these functions are no longer available:</p>

<p>/usr/include/KF5/KCoreAddons/kprocess.h:332: error: no members matching 'QProcess::setReadChannelMode' in 'class QProcess'<br />
/usr/include/KF5/KCoreAddons/kprocess.h:333: error: no members matching 'QProcess::readChannelMode' in 'class QProcess'</p>

<p>This does not affect the remainder of Frameworks or Plasma (yet), because they do not use this QT_DISABLE_DEPRECATED_BEFORE setting.</p>

<p>This change makes the use of these two members conditional on the Qt version (5.12 or earlier).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Built kcoreaddons with this change, checked that applications using this header build correctly without the above errors.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19332">https://phabricator.kde.org/D19332</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/io/kprocess.h</div></div></div><br /><div><strong>To: </strong>marten, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>