1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Apply qt6 changes to KDE download manager integration.

This commit is contained in:
Tiernan Hubble 2023-06-01 19:41:27 -06:00 committed by Juraj Oravec
parent d9c8524cdd
commit f4efa66417
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ QVariant DownloadManagerModel::data(const QModelIndex &index, int role) const
{ {
if (role == Qt::DisplayRole) { if (role == Qt::DisplayRole) {
const DownloadItem *item = m_downloads.at(index.row()); const DownloadItem *item = m_downloads.at(index.row());
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
return item; return item;
#else
return QVariant::fromValue(item);
#endif
} }
return QVariant(); return QVariant();
} }

View File

@ -26,5 +26,5 @@ target_link_libraries(KDEFrameworksIntegration
KF${KF_MAJOR_VERSION}::Crash KF${KF_MAJOR_VERSION}::Crash
KF${KF_MAJOR_VERSION}::CoreAddons KF${KF_MAJOR_VERSION}::CoreAddons
KF${KF_MAJOR_VERSION}::PurposeWidgets KF${KF_MAJOR_VERSION}::PurposeWidgets
KF5::JobWidgets KF${KF_MAJOR_VERSION}::JobWidgets
) )