summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpcontentwidget.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2024-02-06 22:23:21 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2024-02-08 16:31:02 +0100
commitce512e6f24a0614cc5bdf9b8a6123d007b67d481 (patch)
treeb8c9efc6368b03495a216eb65798d1bce0b09fc3 /src/assistant/help/qhelpcontentwidget.h
parentffd71016216ee6776b60cf1d73db971eff33bc02 (diff)
QtHelp: Some more cleanup in headers
Use "= {}" for default args. Fix indentations. Task-number: QTBUG-122025 Change-Id: I1aad4dd795ca8d895a62bcf8641343eca6600457 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/assistant/help/qhelpcontentwidget.h')
-rw-r--r--src/assistant/help/qhelpcontentwidget.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/assistant/help/qhelpcontentwidget.h b/src/assistant/help/qhelpcontentwidget.h
index f459cb465..430fdf123 100644
--- a/src/assistant/help/qhelpcontentwidget.h
+++ b/src/assistant/help/qhelpcontentwidget.h
@@ -30,8 +30,7 @@ public:
int childPosition(QHelpContentItem *child) const;
private:
- QHelpContentItem(const QString &name, const QUrl &link,
- QHelpContentItem *parent = nullptr);
+ QHelpContentItem(const QString &name, const QUrl &link, QHelpContentItem *parent = nullptr);
QHelpContentItemPrivate *d;
friend class QHelpContentProvider;
@@ -49,11 +48,10 @@ public:
QHelpContentItem *contentItemAt(const QModelIndex &index) const;
QVariant data(const QModelIndex &index, int role) const override;
- QModelIndex index(int row, int column,
- const QModelIndex &parent = QModelIndex()) const override;
+ QModelIndex index(int row, int column, const QModelIndex &parent = {}) const override;
QModelIndex parent(const QModelIndex &index) const override;
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
- int columnCount(const QModelIndex &parent = QModelIndex()) const override;
+ int rowCount(const QModelIndex &parent = {}) const override;
+ int columnCount(const QModelIndex &parent = {}) const override;
bool isCreatingContents() const;
Q_SIGNALS:
@@ -83,8 +81,8 @@ private Q_SLOTS:
void showLink(const QModelIndex &index);
private:
- bool searchContentItem(QHelpContentModel *model,
- const QModelIndex &parent, const QString &path);
+ bool searchContentItem(QHelpContentModel *model, const QModelIndex &parent,
+ const QString &path);
QModelIndex m_syncIndex;
private: