Commit 4a585d36 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated here too

parent 2642e0d9
......@@ -115,9 +115,13 @@ QVector&lt;TableDescription&gt; <xsl:value-of select="$className"/>::tables()
t.data.reserve(<xsl:value-of select="count(data)"/>);
<xsl:for-each select="data">
{
#if QT_VERSION &lt; QT_VERSION_CHECK(5, 15, 0)
const QStringList columns = QStringLiteral("<xsl:value-of select="@columns"/>").split( QLatin1Char( ',' ), QString::SkipEmptyParts );
const QStringList values = QStringLiteral("<xsl:value-of select="@values"/>").split( QLatin1Char( ',' ), QString::SkipEmptyParts );
#else
const QStringList columns = QStringLiteral("<xsl:value-of select="@columns"/>").split( QLatin1Char( ',' ), Qt::SkipEmptyParts );
const QStringList values = QStringLiteral("<xsl:value-of select="@values"/>").split( QLatin1Char( ',' ), Qt::SkipEmptyParts );
#endif
Q_ASSERT( columns.count() == values.count() );
DataDescription d;
......
......@@ -38,7 +38,11 @@
{
IndexDescription idx;
idx.name = QLatin1String("<xsl:value-of select="@name"/>");
#if QT_VERSION &lt; QT_VERSION_CHECK(5, 15, 0)
idx.columns = QString::fromLatin1("<xsl:value-of select="@columns"/>").split( QLatin1Char( ',' ), QString::SkipEmptyParts );
#else
idx.columns = QString::fromLatin1("<xsl:value-of select="@columns"/>").split( QLatin1Char( ',' ), Qt::SkipEmptyParts );
#endif
<xsl:if test="@unique">
idx.isUnique = <xsl:value-of select="@unique"/>;
</xsl:if>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment