mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Apply qt6 changes to KDE download manager integration.
This commit is contained in:
parent
d9c8524cdd
commit
f4efa66417
@ -33,7 +33,11 @@ QVariant DownloadManagerModel::data(const QModelIndex &index, int role) const
|
||||
{
|
||||
if (role == Qt::DisplayRole) {
|
||||
const DownloadItem *item = m_downloads.at(index.row());
|
||||
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
|
||||
return item;
|
||||
#else
|
||||
return QVariant::fromValue(item);
|
||||
#endif
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
@ -26,5 +26,5 @@ target_link_libraries(KDEFrameworksIntegration
|
||||
KF${KF_MAJOR_VERSION}::Crash
|
||||
KF${KF_MAJOR_VERSION}::CoreAddons
|
||||
KF${KF_MAJOR_VERSION}::PurposeWidgets
|
||||
KF5::JobWidgets
|
||||
KF${KF_MAJOR_VERSION}::JobWidgets
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user