Skip to content

Commit

Permalink
some steps towards Qt 5.12 compatibility; see #40
Browse files Browse the repository at this point in the history
  • Loading branch information
lawremi committed Mar 1, 2019
1 parent 64a52bf commit 16afbaf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Expand Up @@ -232,6 +232,8 @@ int generate()
Util::typeMap["size_t"] = "ulong";
}

Util::typeMap["qsizetype"] = Util::typeMap["size_t"];

qDebug() << "Generating SMOKE sources...";

SmokeDataFile smokeData;
Expand Down
2 changes: 1 addition & 1 deletion src/kdebindings/generator/generatorvisitor.cpp
Expand Up @@ -419,7 +419,7 @@ void GeneratorVisitor::visitDeclarator(DeclaratorAST* node)
Typedef tdef = Typedef(currentTypeRef, declName, nspace.join("::"), parent);
tdef.setFileName(m_header);
QString name = tdef.toString();
if (!typedefs.contains(name)) {
if (!typedefs.contains(name) && !name.endsWith("iterator")) {
QHash<QString, Typedef>::iterator it = typedefs.insert(name, tdef);
if (parent)
parent->appendChild(&it.value());
Expand Down
6 changes: 5 additions & 1 deletion src/kdebindings/smoke/qt/smokeconfig.xml
Expand Up @@ -142,6 +142,11 @@
<signature>.*QXmlStreamNotationDeclaration</signature>
<signature>.*QDateTime</signature>
<signature>.*QOAuth1Signature</signature>
<signature>.*QJsonArray</signature>
<signature>.*QJsonDocument</signature>
<signature>.*QJsonObject</signature>
<signature>.*QJsonValue</signature>
<signature>.*QSqlError</signature>

<!-- QByteArray would need to be Qt:: qualified, just ignore -->
<signature>.*QMetaType::type\(const QByteArray&amp;\).*</signature>
Expand Down Expand Up @@ -396,7 +401,6 @@
<class>QOperatingSystemVersion</class>
<class>QStringView</class>
<class>QRandomGenerator</class>
<class>QSemaphoreReleaser</class>

<!-- QtGui -->
<class>QInputMethodEvent::Attribute</class>
Expand Down

0 comments on commit 16afbaf

Please sign in to comment.