From 850fed557f60836793d83835744e10031575eb50 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Tue, 12 Sep 2017 15:12:37 +0200 Subject: [PATCH] Const getter and api break docs --- doc/api_break.dox | 9 +++++++++ python/core/qgsbrowsermodel.sip | 2 +- src/core/qgsbrowsermodel.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/api_break.dox b/doc/api_break.dox index 1597f1a7c8b..887b39addb0 100644 --- a/doc/api_break.dox +++ b/doc/api_break.dox @@ -557,6 +557,15 @@ QgsBrowserModel {#qgis_api_break_3_0_QgsBrowserModel} - addFavouriteDirectory has been renamed to addFavoriteDirectory - removeFavourite has been renamed to removeFavorite +- initialize has been added +- initialized has been added + + +QgsBrowserDockWidget {#qgis_api_break_3_0_QgsBrowserDockWidget} +-------------------- + +- The constructor for QgsBrowserDockWidget has changed: a QgsBrowserModel instance is now an argument. + QgsCachedFeatureIterator {#qgis_api_break_3_0_QgsQgsCachedFeatureIterator} ------------------------ diff --git a/python/core/qgsbrowsermodel.sip b/python/core/qgsbrowsermodel.sip index 5165b883829..d913e71290e 100644 --- a/python/core/qgsbrowsermodel.sip +++ b/python/core/qgsbrowsermodel.sip @@ -177,7 +177,7 @@ Reload the whole model Hide the given path in the browser model %End - bool initialized( ); + bool initialized( ) const; %Docstring Returns true if the model has been initialized :rtype: bool diff --git a/src/core/qgsbrowsermodel.h b/src/core/qgsbrowsermodel.h index ad3c1486234..405bca044ed 100644 --- a/src/core/qgsbrowsermodel.h +++ b/src/core/qgsbrowsermodel.h @@ -168,7 +168,7 @@ class CORE_EXPORT QgsBrowserModel : public QAbstractItemModel void hidePath( QgsDataItem *item ); //! Returns true if the model has been initialized - bool initialized( ) { return mInitialized; } + bool initialized( ) const { return mInitialized; } //! Delayed initialization, needed because the provider registry must be already populated void initialize();