summaryrefslogtreecommitdiff
path: root/src/browserview.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2022-05-17 11:47:01 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2023-07-09 17:20:40 +0200
commitd13f6bb870cdda71257f665367be8ef9fca86255 (patch)
tree52e214718478f1e52856572f5aa1a2ac58537f9f /src/browserview.h
parent86bb01ba9eac879d3685c439ac9da0028bc4bc80 (diff)
Apply clang-format.
Diffstat (limited to 'src/browserview.h')
-rw-r--r--src/browserview.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/browserview.h b/src/browserview.h
index c0248263..b07f0ad0 100644
--- a/src/browserview.h
+++ b/src/browserview.h
@@ -20,23 +20,21 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#ifndef NEXUSVIEW_H
#define NEXUSVIEW_H
-
class QEvent;
class QUrl;
class QWidget;
-#include <QWebEngineView>
#include <QWebEnginePage>
+#include <QWebEngineView>
/**
* @brief web view used to display a nexus page
**/
class BrowserView : public QWebEngineView
{
- Q_OBJECT
+ Q_OBJECT
public:
-
- explicit BrowserView(QWidget *parent = 0);
+ explicit BrowserView(QWidget* parent = 0);
signals:
@@ -45,14 +43,15 @@ signals:
*
* @param newView the view for the newly opened window
**/
- void initTab(BrowserView *newView);
+ void initTab(BrowserView* newView);
/**
- * @brief emitted when the user requests a link to be opened in a new tab by middle-clicking
+ * @brief emitted when the user requests a link to be opened in a new tab by
+ * middle-clicking
*
* @param url the url to open
*/
- void openUrlInNewTab(const QUrl &url);
+ void openUrlInNewTab(const QUrl& url);
/**
* @brief Ctrl-f was clicked. The containing dialog should activate its find-facility
@@ -65,17 +64,13 @@ signals:
void findAgain();
protected:
+ virtual QWebEngineView* createWindow(QWebEnginePage::WebWindowType type);
- virtual QWebEngineView *createWindow(QWebEnginePage::WebWindowType type);
-
- virtual bool eventFilter(QObject *obj, QEvent *event);
-
+ virtual bool eventFilter(QObject* obj, QEvent* event);
private:
-
QString m_FindPattern;
bool m_MiddleClick;
-
};
-#endif // NEXUSVIEW_H
+#endif // NEXUSVIEW_H