mirror of https://github.com/KLayout/klayout.git
Trying to fix Qt4 builds
This commit is contained in:
parent
6c7064fa23
commit
67db8dfc96
|
|
@ -71,6 +71,8 @@ def add_native_impl_QObject_findChild()
|
|||
|
||||
#if QT_VERSION < 0x50000
|
||||
|
||||
#include <QRegExp>
|
||||
|
||||
QObject *find_child_impl (QObject *object, const QString &name)
|
||||
{
|
||||
return object->findChild<QObject *> (name);
|
||||
|
|
@ -79,7 +81,7 @@ def add_native_impl_QObject_findChild()
|
|||
{
|
||||
return object->findChildren<QObject *> (name);
|
||||
}
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegularExpression &re)
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegExp &re)
|
||||
{
|
||||
return object->findChildren<QObject *> (re);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ static void _call_smo (const qt_gsi::GenericStaticMethod *, gsi::SerialArgs &, g
|
|||
|
||||
#if QT_VERSION < 0x50000
|
||||
|
||||
#include <QRegExp>
|
||||
|
||||
QObject *find_child_impl (QObject *object, const QString &name)
|
||||
{
|
||||
return object->findChild<QObject *> (name);
|
||||
|
|
@ -62,7 +64,7 @@ static void _call_smo (const qt_gsi::GenericStaticMethod *, gsi::SerialArgs &, g
|
|||
{
|
||||
return object->findChildren<QObject *> (name);
|
||||
}
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegularExpression &re)
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegExp &re)
|
||||
{
|
||||
return object->findChildren<QObject *> (re);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ static void _call_smo (const qt_gsi::GenericStaticMethod *, gsi::SerialArgs &, g
|
|||
|
||||
#if QT_VERSION < 0x50000
|
||||
|
||||
#include <QRegExp>
|
||||
|
||||
QObject *find_child_impl (QObject *object, const QString &name)
|
||||
{
|
||||
return object->findChild<QObject *> (name);
|
||||
|
|
@ -63,7 +65,7 @@ static void _call_smo (const qt_gsi::GenericStaticMethod *, gsi::SerialArgs &, g
|
|||
{
|
||||
return object->findChildren<QObject *> (name);
|
||||
}
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegularExpression &re)
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegExp &re)
|
||||
{
|
||||
return object->findChildren<QObject *> (re);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ static void _call_smo (const qt_gsi::GenericStaticMethod *, gsi::SerialArgs &, g
|
|||
|
||||
#if QT_VERSION < 0x50000
|
||||
|
||||
#include <QRegExp>
|
||||
|
||||
QObject *find_child_impl (QObject *object, const QString &name)
|
||||
{
|
||||
return object->findChild<QObject *> (name);
|
||||
|
|
@ -63,7 +65,7 @@ static void _call_smo (const qt_gsi::GenericStaticMethod *, gsi::SerialArgs &, g
|
|||
{
|
||||
return object->findChildren<QObject *> (name);
|
||||
}
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegularExpression &re)
|
||||
QList<QObject *> find_children_impl2 (QObject *object, const QRegExp &re)
|
||||
{
|
||||
return object->findChildren<QObject *> (re);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue