QFileDialog::getOpenFileContent: default new parent parameter
Amends 7c5cf8cae054954975a3e262f7fe3cd9897d67f4, which removed the old function that didn't have any parent parameter from the API, and added a new one with the parent parameter in its stead. However, to make sure that the new function is source compatible with existing code, the parent parameter must be defaulted to nullptr (which it already is in the new version of saveFileContent). Found during header review. Pick-to: 6.7 Change-Id: I3e734905be9788ae1b206c7a65328e604667f5e4 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
703f922b18
commit
bed7788402
@ -214,7 +214,7 @@ public:
|
||||
|
||||
static void getOpenFileContent(const QString &nameFilter,
|
||||
const std::function<void(const QString &, const QByteArray &)> &fileContentsReady,
|
||||
QWidget *parent);
|
||||
QWidget *parent= nullptr);
|
||||
|
||||
static void saveFileContent(const QByteArray &fileContent,
|
||||
const QString &fileNameHint,
|
||||
|
Loading…
x
Reference in New Issue
Block a user