Fix compiler warning in gb.qt5 about deprecation of QString::null

QString::null is deprecated since Qt 5.9
Use QString() instead for both qt4 and qt5 components as it constructs a null string.
This commit is contained in:
Laurent Carlier 2019-10-31 12:11:36 +01:00
parent daf012a246
commit 082eb5b733

View file

@ -273,7 +273,7 @@ BEGIN_METHOD(Dialog_OpenFile, GB_BOOLEAN multi)
}
}
dialog_title = QString::null;
dialog_title = QString();
END_METHOD
@ -292,7 +292,7 @@ BEGIN_METHOD_VOID(Dialog_SaveFile)
GB.ReturnBoolean(false);
}
dialog_title = QString::null;
dialog_title = QString();
END_METHOD
@ -311,7 +311,7 @@ BEGIN_METHOD_VOID(Dialog_SelectDirectory)
GB.ReturnBoolean(false);
}
dialog_title = QString::null;
dialog_title = QString();
END_METHOD