Skip to content

Commit 850fed5

Browse files
committed
Const getter and api break docs
1 parent 151cd08 commit 850fed5

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

doc/api_break.dox

+9
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,15 @@ QgsBrowserModel {#qgis_api_break_3_0_QgsBrowserModel}
557557

558558
- addFavouriteDirectory has been renamed to addFavoriteDirectory
559559
- removeFavourite has been renamed to removeFavorite
560+
- initialize has been added
561+
- initialized has been added
562+
563+
564+
QgsBrowserDockWidget {#qgis_api_break_3_0_QgsBrowserDockWidget}
565+
--------------------
566+
567+
- The constructor for QgsBrowserDockWidget has changed: a QgsBrowserModel instance is now an argument.
568+
560569

561570
QgsCachedFeatureIterator {#qgis_api_break_3_0_QgsQgsCachedFeatureIterator}
562571
------------------------

python/core/qgsbrowsermodel.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Reload the whole model
177177
Hide the given path in the browser model
178178
%End
179179

180-
bool initialized( );
180+
bool initialized( ) const;
181181
%Docstring
182182
Returns true if the model has been initialized
183183
:rtype: bool

src/core/qgsbrowsermodel.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class CORE_EXPORT QgsBrowserModel : public QAbstractItemModel
168168
void hidePath( QgsDataItem *item );
169169

170170
//! Returns true if the model has been initialized
171-
bool initialized( ) { return mInitialized; }
171+
bool initialized( ) const { return mInitialized; }
172172

173173
//! Delayed initialization, needed because the provider registry must be already populated
174174
void initialize();

0 commit comments

Comments
 (0)