revisions regarding iOS and latest Xcode

This commit is contained in:
pls.153 2024-12-25 18:33:25 +01:00
parent 8b24889bcd
commit a64e53bb59
4 changed files with 4 additions and 9 deletions

View file

@ -94,16 +94,16 @@ QVariant QT::connectDocumentChanged(const QVariant& vDocument, const QVariant& v
return false;
}
#ifdef Q_OS_IOS
QVariant QT::connectKeyPressed() {
#ifdef Q_OS_IOS
GuiApplication* sender = static_cast<GuiApplication*>(qGuiApp);
connect(sender, &GuiApplication::keyPressed,
[](const QString& key, const QString& objectName) {
ecl_fun("editor:key-pressed", key, objectName);
});
#endif
return QVariant();
}
#endif
// methods

View file

@ -80,9 +80,7 @@ public:
// connect
Q_INVOKABLE QVariant connectDocumentChanged(const QVariant&, const QVariant&);
#ifdef Q_OS_IOS
Q_INVOKABLE QVariant connectKeyPressed();
#endif
// methods
Q_INVOKABLE QVariant block2 (const QVariant&);

View file

@ -132,10 +132,7 @@ ios {
LIBS += -lasdf -lecl-help -ldeflate -lecl-cdb -lecl-curl -lql-minitar -lsockets
LIBS += -L../../../platforms/ios/lib
# OpenSSL libs not included here, required for downloading map tiles
# either build them by yourself or find a trusted source for downloading,
# and put them here: '../../../platforms/ios/lib/'
LIBS += -lcrypto -lssl
# note: SSL on Qt side works out of the box on iOS
SOURCES += cpp/ios.mm

View file

@ -118,9 +118,9 @@ public:
}
return QGuiApplication::eventFilter(object, event);
}
#endif
Q_SIGNALS:
void keyPressed(const QString&, const QString&);
#endif
};