Compile with getOpenGileContent() API changes

getOpenGileContent() takes a parent now, and the compat
API is behind a QT_WIDGETS_REMOVED_SINCE(6, 7) which
the manual tests can't access.

Pick-to: 6.7
Change-Id: I81784baed178bb8efd1a848d32c9ee4510971e26
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
This commit is contained in:
Morten Sørvig 2024-01-03 13:14:21 +01:00 committed by Morten Johan Sørvig
parent 9c03678f5c
commit 63a00ef2c0

View File

@ -91,7 +91,8 @@ private Q_SLOTS:
{ {
QFileDialog::getOpenFileContent( QFileDialog::getOpenFileContent(
m_filterEdit->text(), m_filterEdit->text(),
std::bind(&AppWindow::onFileContentReady, this, std::placeholders::_1, std::placeholders::_2)); std::bind(&AppWindow::onFileContentReady, this, std::placeholders::_1, std::placeholders::_2),
&m_loadFileUi);
} }
void onSaveClicked() void onSaveClicked()