<div>Something like this</div><br><br><code><pre style="background-color:rgba(0,0,0,0.05);padding:0.2em 1em"><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">#if </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">(</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">QT_VERSION </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 175, 239)">>= </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">QT_VERSION_CHECK</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">(</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(209, 154, 102)">5</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">, </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(209, 154, 102)">14</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">, </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(209, 154, 102)">0</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">))</span></font></font></span></div><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">            </span></font></font></span></div><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">            </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(229, 193, 124)">QStringList </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(209, 154, 102)">tagsList </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 175, 239)">= </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(209, 154, 102)">hierarchy</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">.</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">split</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">(</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">QLatin1Char</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">(</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(152, 195, 121)">'/'</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">), </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(229, 193, 124)">Qt</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 175, 239)">::</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(209, 154, 102)">SkipEmptyParts</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">);</span></font></font></span></div><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">            </span></font></font></span></div><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">#else</span></font></font></span></div><br><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">            </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace">QStringList tagsList </font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 175, 239)">= </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace">hierarchy</font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">.</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace">split</font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">(</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace">QLatin1Char</font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">(</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(152, 195, 121)">'/'</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">), </span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace">QString</font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 175, 239)">::</span></font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace">SkipEmptyParts</font></font></span><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(166, 178, 192)">);</span></font></font></span></div><br><div><span style="color:rgb(171, 178, 191)"><font style="font-size:12pt"><font style="font-family:Hack, monospace"><span style="color:rgb(97, 174, 239)">#endif</span></font></font></span></div></pre></code><br><div>I haven't pushed it yet though. </div><div class="gmail_quote_attribution">On Jun 16 2021, at 2:19 am, Anjani Kumar <anjanik012@gmail.com> wrote:</div><blockquote><div>I already started this pre-processor branching. Not for Qt::endl but I have done it for QString::split() which is also present from Qt 5.14.</div><br><div class="gmail_quote_attribution">On Jun 16 2021, at 2:16 am, Maik Qualmann <metzpinguin@gmail.com> wrote:</div><blockquote><div><div>But we already have a problem with Qt::endl, this only exists with Qt-5.14. We</div><div>should find another way of doing this than with pre-processeur branching.</div><div>Maybe define a macro.</div><br><div>Maik</div><br><div>Am Dienstag, 15. Juni 2021, 13:55:53 CEST schrieb Gilles Caulier:</div><div>> Hi,</div><div>></div><div>> No. We need to be compatible at least with Qt 5.12 LTS.</div><div>> Please make pre-processeur branching in source code by checking Qt version,</div><div>> as it already do in other place in digiKam.</div><div>></div><div>> exemple :</div><div>> https://invent.kde.org/graphics/digikam/-/blob/master/core/app/date/ddatepic</div><div>> ker.cpp#L547</div><div>></div><div>> Best</div><div>></div><div>> Gilles Caulier</div><div>></div><div>> Le mar. 15 juin 2021 à 13:52, Anjani Kumar <anjanik012@gmail.com> a écrit :</div><div>> > The recent changes to</div><div>> > https://invent.kde.org/graphics/digikam/-/tree/gsoc21-qt6-port makes it</div><div>> > compile only on newer Qt versions. So I it should be best Bump Qt version</div><div>> > to 5.15.2. Should I make the change?</div><div>> ></div><div>> > Thanks,</div><div>> > Anjani</div></div></blockquote></blockquote>