File indexing completed on 2024-05-19 05:01:19
0001 #ifndef QTWEBENGINE6COMPAT_H 0002 #define QTWEBENGINE6COMPAT_H 0003 0004 #include <QtGlobal> 0005 0006 //TODO KF6: when dropping support for Qt5, remove this file and include the files in the #else branch 0007 #if QT_VERSION_MAJOR < 6 0008 #include <QWebEngineDownloadItem> 0009 #include <QWebEngineContextMenuData> 0010 typedef QWebEngineDownloadItem QWebEngineDownloadRequest; 0011 typedef QWebEngineContextMenuData QWebEngineContextMenuRequest; 0012 typedef uint qHashReturnType; 0013 #else 0014 #include <QWebEngineDownloadRequest> 0015 #include <QWebEngineContextMenuRequest> 0016 0017 //TODO: when dropping support for Qt5, change the return type of the various qHash functions from qHashReturnType to size_t 0018 typedef size_t qHashReturnType; 0019 #endif 0020 0021 #endif //QTWEBENGINE6COMPAT_H 0022