Const getter and api break docs

This commit is contained in:
Alessandro Pasotti 2017-09-12 15:12:37 +02:00
parent 151cd080c9
commit 850fed557f
3 changed files with 11 additions and 2 deletions

View File

@ -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}
------------------------

View File

@ -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

View File

@ -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();