From e43222c3e8da9f42d0d95207fa94335165a27d9d Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 19 Feb 2021 19:25:53 -0500 Subject: Compatibility with Qt 6 --- ui/reportwidget.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ui/reportwidget.h') diff --git a/ui/reportwidget.h b/ui/reportwidget.h index 02572490..25ee7a30 100644 --- a/ui/reportwidget.h +++ b/ui/reportwidget.h @@ -3,15 +3,20 @@ #include #include #include +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include #include #include #include #include +#else +#include +#endif #include "binaryninjaapi.h" #include "action.h" #include "theme.h" +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) class WebPage2 : public QWebEnginePage { Q_OBJECT @@ -25,12 +30,17 @@ protected: Q_SIGNALS: void linkClicked(const QUrl&); }; +#endif class BINARYNINJAUIAPI ReportWidget: public QScrollArea, public UIActionHandler { Q_OBJECT +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) QWebEngineView* m_contents; +#else + QTextBrowser* m_contents; +#endif BinaryViewRef m_view; std::string m_original; std::string m_title; -- cgit v1.3.1