mirror of
https://github.com/mappu/miqt.git
synced 2025-04-27 15:40:21 +00:00
genbindings: Qt6Network dtls functions require QT_CONFIG(dtls)
This commit is contained in:
parent
57fee82f35
commit
bc4a22f142
@ -657,6 +657,15 @@ func ApplyQuirks(packageName, className string, mm *CppMethod) {
|
||||
mm.ReturnType.BecomesConstInVersion = addr("6.9")
|
||||
}
|
||||
|
||||
// macOS Brew does not have Qt6Network dtls functionality enabled, but we
|
||||
// want these functions to exist on other platforms
|
||||
// Can't block in Go-side
|
||||
if (packageName == "qt6/network" || packageName == "qt/network") &&
|
||||
className == "QSslConfiguration" &&
|
||||
(mm.MethodName == "dtlsCookieVerificationEnabled" || mm.MethodName == "setDtlsCookieVerificationEnabled" || mm.MethodName == "defaultDtlsConfiguration" || mm.MethodName == "setDefaultDtlsConfiguration") {
|
||||
mm.RequireCpp = addr("QT_CONFIG(dtls)")
|
||||
}
|
||||
|
||||
if className == "QFileDialog" && mm.MethodName == "saveFileContent" && mm.IsStatic && len(mm.Parameters) > 1 {
|
||||
// The prototype was changed from
|
||||
// [Qt 5 - 6.6] void QFileDialog::saveFileContent(const QByteArray &fileContent, const QString &fileNameHint = QString())
|
||||
|
Loading…
x
Reference in New Issue
Block a user