summaryrefslogtreecommitdiff
path: root/src/webenginewidgets
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-07-23 10:39:32 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-08-18 12:19:43 +0200
commitc9795481c6162f4e7800aa573c37e8a200b46782 (patch)
tree32b8c82c8a36c2243371304e53de237d738c671d /src/webenginewidgets
parent596788e71c3d4c2be79760d9e0f6f45c02ccf159 (diff)
downloadqtwebengine-c9795481c6162f4e7800aa573c37e8a200b46782.tar.gz
Clean up coding style in API header files
Pick-to: 6.2 Change-Id: Ifa5892415a1e0b8ce9b6bfa10719aba618e3b799 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/webenginewidgets')
-rw-r--r--src/webenginewidgets/api/qwebenginenotificationpresenter_p.h3
-rw-r--r--src/webenginewidgets/api/qwebengineview.h42
-rw-r--r--src/webenginewidgets/api/qwebengineview_p.h2
3 files changed, 27 insertions, 20 deletions
diff --git a/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h b/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
index 49d774806..33b6a6782 100644
--- a/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
+++ b/src/webenginewidgets/api/qwebenginenotificationpresenter_p.h
@@ -62,7 +62,8 @@ QT_BEGIN_NAMESPACE
class QSystemTrayIcon;
-class DefaultNotificationPresenter : public QObject {
+class DefaultNotificationPresenter : public QObject
+{
Q_OBJECT
public:
DefaultNotificationPresenter(QObject *parent = nullptr);
diff --git a/src/webenginewidgets/api/qwebengineview.h b/src/webenginewidgets/api/qwebengineview.h
index edd619621..b222de0df 100644
--- a/src/webenginewidgets/api/qwebengineview.h
+++ b/src/webenginewidgets/api/qwebengineview.h
@@ -59,7 +59,8 @@ class QWebEngineSettings;
class QWebEngineViewAccessible;
class QWebEngineViewPrivate;
-class QWEBENGINEWIDGETS_EXPORT QWebEngineView : public QWidget {
+class QWEBENGINEWIDGETS_EXPORT QWebEngineView : public QWidget
+{
Q_OBJECT
Q_PROPERTY(QString title READ title)
Q_PROPERTY(QUrl url READ url WRITE setUrl)
@@ -75,15 +76,16 @@ public:
static QWebEngineView *forPage(const QWebEnginePage *page);
- QWebEnginePage* page() const;
- void setPage(QWebEnginePage* page);
+ QWebEnginePage *page() const;
+ void setPage(QWebEnginePage *page);
void load(const QUrl &url);
void load(const QWebEngineHttpRequest &request);
- void setHtml(const QString& html, const QUrl& baseUrl = QUrl());
- void setContent(const QByteArray& data, const QString& mimeType = QString(), const QUrl& baseUrl = QUrl());
+ void setHtml(const QString &html, const QUrl &baseUrl = QUrl());
+ void setContent(const QByteArray &data, const QString &mimeType = QString(),
+ const QUrl &baseUrl = QUrl());
- QWebEngineHistory* history() const;
+ QWebEngineHistory *history() const;
QString title() const;
void setUrl(const QUrl &url);
@@ -95,13 +97,15 @@ public:
QString selectedText() const;
#ifndef QT_NO_ACTION
- QAction* pageAction(QWebEnginePage::WebAction action) const;
+ QAction *pageAction(QWebEnginePage::WebAction action) const;
#endif
void triggerPageAction(QWebEnginePage::WebAction action, bool checked = false);
qreal zoomFactor() const;
void setZoomFactor(qreal factor);
- void findText(const QString &subString, QWebEnginePage::FindFlags options = {}, const std::function<void(const QWebEngineFindTextResult &)> &resultCallback = std::function<void(const QWebEngineFindTextResult &)>());
+ void findText(const QString &subString, QWebEnginePage::FindFlags options = {},
+ const std::function<void(const QWebEngineFindTextResult &)> &resultCallback =
+ std::function<void(const QWebEngineFindTextResult &)>());
QSize sizeHint() const override;
QWebEngineSettings *settings() const;
@@ -112,10 +116,12 @@ public:
QWebEngineContextMenuRequest *lastContextMenuRequest() const;
void printToPdf(const QString &filePath,
- const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF()),
+ const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4),
+ QPageLayout::Portrait, QMarginsF()),
const QPageRanges &ranges = {});
- void printToPdf(const std::function<void(const QByteArray&)> &resultCallback,
- const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF()),
+ void printToPdf(const std::function<void(const QByteArray &)> &resultCallback,
+ const QPageLayout &layout = QPageLayout(QPageSize(QPageSize::A4),
+ QPageLayout::Portrait, QMarginsF()),
const QPageRanges &ranges = {});
void print(QPrinter *printer);
@@ -129,13 +135,13 @@ Q_SIGNALS:
void loadStarted();
void loadProgress(int progress);
void loadFinished(bool);
- void titleChanged(const QString& title);
+ void titleChanged(const QString &title);
void selectionChanged();
- void urlChanged(const QUrl&);
- void iconUrlChanged(const QUrl&);
- void iconChanged(const QIcon&);
+ void urlChanged(const QUrl &);
+ void iconUrlChanged(const QUrl &);
+ void iconChanged(const QIcon &);
void renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus terminationStatus,
- int exitCode);
+ int exitCode);
void pdfPrintingFinished(const QString &filePath, bool success);
void printRequested();
void printFinished(bool success);
@@ -143,9 +149,9 @@ Q_SIGNALS:
protected:
virtual QWebEngineView *createWindow(QWebEnginePage::WebWindowType type);
#if QT_CONFIG(contextmenu)
- void contextMenuEvent(QContextMenuEvent*) override;
+ void contextMenuEvent(QContextMenuEvent *) override;
#endif // QT_CONFIG(contextmenu)
- bool event(QEvent*) override;
+ bool event(QEvent *) override;
void showEvent(QShowEvent *) override;
void hideEvent(QHideEvent *) override;
void closeEvent(QCloseEvent *) override;
diff --git a/src/webenginewidgets/api/qwebengineview_p.h b/src/webenginewidgets/api/qwebengineview_p.h
index 13b346df9..c34aec09a 100644
--- a/src/webenginewidgets/api/qwebengineview_p.h
+++ b/src/webenginewidgets/api/qwebengineview_p.h
@@ -130,7 +130,7 @@ public:
int indexOfChild(const QAccessibleInterface *child) const override;
private:
- QWebEngineView *view() const { return static_cast<QWebEngineView*>(object()); }
+ QWebEngineView *view() const { return static_cast<QWebEngineView *>(object()); }
};
#endif // QT_NO_ACCESSIBILITY