diff options
author | Pierre Rossi <pierre.rossi@theqtcompany.com> | 2015-06-11 14:06:13 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@theqtcompany.com> | 2015-06-12 09:26:58 +0000 |
commit | 0b65f3ca378810d3b33345b99bf084124acf3e5f (patch) | |
tree | 3f2857dfd9c98498d8be92607a11a2a4f023ab41 /src/webenginewidgets/api/qwebenginedownloaditem.h | |
parent | e0e74a0a9286bb92ae7e2e2395827538133d2bf0 (diff) |
Last minute API review cleanup
The getters in QWebEngineDownloadItem were not const.
The script collection in QWebEngineProfile was passed by reference,
which is not idiomatic of Qt.
Change-Id: I9b4218b407288b91a726a711bd2a7e1c1167d99a
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginedownloaditem.h')
-rw-r--r-- | src/webenginewidgets/api/qwebenginedownloaditem.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/webenginewidgets/api/qwebenginedownloaditem.h b/src/webenginewidgets/api/qwebenginedownloaditem.h index ee3ab221d..d362131f2 100644 --- a/src/webenginewidgets/api/qwebenginedownloaditem.h +++ b/src/webenginewidgets/api/qwebenginedownloaditem.h @@ -61,14 +61,14 @@ public: }; Q_ENUMS(DownloadState) - quint32 id(); - DownloadState state(); - qint64 totalBytes(); - qint64 receivedBytes(); - QUrl url(); - QString path(); + quint32 id() const; + DownloadState state() const; + qint64 totalBytes() const; + qint64 receivedBytes() const; + QUrl url() const; + QString path() const; void setPath(QString path); - bool isFinished(); + bool isFinished() const; public Q_SLOTS: void accept(); |