1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-02 13:17:48 -04:00

Fix for Qt 6.

This commit is contained in:
srcejon 2024-04-05 21:30:23 +01:00
parent c1a2c5cbab
commit 9c1b1ab4f8
2 changed files with 10 additions and 2 deletions

View File

@ -2744,12 +2744,18 @@ void MapGUI::fullScreenRequested(QWebEngineFullScreenRequest fullScreenRequest)
ui->splitter->addWidget(ui->web); ui->splitter->addWidget(ui->web);
} }
} }
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
void MapGUI::downloadRequested(QWebEngineDownloadRequest *download)
{
download->accept();
}
#else
void MapGUI::downloadRequested(QWebEngineDownloadItem *download) void MapGUI::downloadRequested(QWebEngineDownloadItem *download)
{ {
download->accept(); download->accept();
} }
#endif #endif
#endif
void MapGUI::preferenceChanged(int elementType) void MapGUI::preferenceChanged(int elementType)
{ {

View File

@ -336,8 +336,10 @@ private slots:
void renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode); void renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode);
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
void loadingChanged(const QWebEngineLoadingInfo &loadingInfo); void loadingChanged(const QWebEngineLoadingInfo &loadingInfo);
#endif void downloadRequested(QWebEngineDownloadRequest *download);
#else
void downloadRequested(QWebEngineDownloadItem *download); void downloadRequested(QWebEngineDownloadItem *download);
#endif
#endif #endif
void statusChanged(QQuickWidget::Status status); void statusChanged(QQuickWidget::Status status);
void preferenceChanged(int elementType); void preferenceChanged(int elementType);