<table><tr><td style="">mglb updated this revision to Diff 54462.<br />mglb retitled this revision from "Set patch number in QT_MIN_VERSION to 0" to "Fix undefined behavior and set QT_MIN_VERSION to 5.9.0".<br />mglb edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-rty3it2ijabkrgs/">(Show Details)</a><br />mglb 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/D19859">View Revision</a></tr></table><br /><div><div><p>Update description</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Patch </span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Arguments in some QCOMPARE calls in KeyboardTranslatorTest had slightly<br />
different types, what according to Qt documentation is not allowed.<br />
The types of both QCOMPARE arguments must be exactly the same, otherwise<br />
the code doesn't compile with some Qt versions.<br />
<br />
With this fix it is safe to lower minimum Qt version to 5.9.0. Patch<br />
</span>number is incremented only for bugfix releases<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Setting it to</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">so as long as invalid</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">something other than 0 does not give any advantages</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">code is not used everything should work</span>.<br />
<br />
The <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">change</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">fix</span> allows to compile Konsole using system libs on larger number<br />
of systems, e.g. Ubuntu 18.04 LTS (Qt 5.9.5).<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
Tested with Qt 5.9.[0-5] and 5.11.1</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D19859?vs=54461&id=54462">https://phabricator.kde.org/D19859?vs=54461&id=54462</a></div></div><br /><div><strong>BRANCH</strong><div><div>arc/Fix-undefined-behavior-and-set-QT_MIN_VERSION-to-5.9.0 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19859">https://phabricator.kde.org/D19859</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
src/autotests/KeyboardTranslatorTest.cpp</div></div></div><br /><div><strong>To: </strong>mglb, Konsole<br /><strong>Cc: </strong>hindenburg, konsole-devel, gennad, maciejn, thsurrel, ngraham, maximilianocuria<br /></div>