diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /ui/reportwidget.h | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'ui/reportwidget.h')
| -rw-r--r-- | ui/reportwidget.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/ui/reportwidget.h b/ui/reportwidget.h index 51dd2d59..414fb412 100644 --- a/ui/reportwidget.h +++ b/ui/reportwidget.h @@ -4,13 +4,13 @@ #include <QtWidgets/QTextBrowser> #include <QtWidgets/QScrollArea> #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) -#include <QtWebEngineWidgets/QWebEngineView> -#include <QtWebEngineWidgets/QWebEngineScript> -#include <QtWebEngineWidgets/QWebEngineScriptCollection> -#include <QtWebEngineWidgets/QWebEnginePage> -#include <QtWebEngineWidgets/QWebEngineSettings> + #include <QtWebEngineWidgets/QWebEngineView> + #include <QtWebEngineWidgets/QWebEngineScript> + #include <QtWebEngineWidgets/QWebEngineScriptCollection> + #include <QtWebEngineWidgets/QWebEnginePage> + #include <QtWebEngineWidgets/QWebEngineSettings> #else -#include <QtWidgets/QTextBrowser> + #include <QtWidgets/QTextBrowser> #endif #include "binaryninjaapi.h" #include "action.h" @@ -21,18 +21,18 @@ class WebPage2 : public QWebEnginePage { Q_OBJECT -public: - WebPage2(QObject *parent = nullptr) : QWebEnginePage(parent) {} + public: + WebPage2(QObject* parent = nullptr) : QWebEnginePage(parent) {} -protected: - virtual bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame); + protected: + virtual bool acceptNavigationRequest(const QUrl& url, QWebEnginePage::NavigationType type, bool isMainFrame); -Q_SIGNALS: + Q_SIGNALS: void linkClicked(const QUrl&); }; #endif -class BINARYNINJAUIAPI ReportWidget: public QScrollArea, public UIActionHandler +class BINARYNINJAUIAPI ReportWidget : public QScrollArea, public UIActionHandler { Q_OBJECT @@ -47,12 +47,12 @@ class BINARYNINJAUIAPI ReportWidget: public QScrollArea, public UIActionHandler BNReportType m_type; std::string m_plaintext; -private Q_SLOTS: + private Q_SLOTS: void onLinkClicked(QUrl url); -public: - ReportWidget(QWidget* parent, BinaryViewRef view, const std::string& contents, - BNReportType type, const std::string& title, const std::string& plaintext = ""); + public: + ReportWidget(QWidget* parent, BinaryViewRef view, const std::string& contents, BNReportType type, + const std::string& title, const std::string& plaintext = ""); std::string getContents() const { return m_original; } std::string getTitle() const { return m_title; } BNReportType getType() const { return m_type; } |
