Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Doxymentation
  • Loading branch information
m-kuhn committed Jul 23, 2015
1 parent de547ad commit 6b25fe5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/core/symbology-ng/qgssymbolv2.h
Expand Up @@ -112,16 +112,32 @@ class CORE_EXPORT QgsSymbolV2
*/
int symbolLayerCount() { return mLayers.count(); }

//! insert symbol layer to specified index
/**
* Insert symbol layer to specified index
* Ownership will be transferred.
* @param index The index at which the layer should be added
* @param layer The symbol layer to add
* @return True if the layer is added, False if the index or the layer is bad
*/
bool insertSymbolLayer( int index, QgsSymbolLayerV2* layer );

//! append symbol layer at the end of the list
/**
* Append symbol layer at the end of the list
* Ownership will be transferred.
* @param layer The layer to add
* @return True if the layer is added, False if the layer is bad
*/
bool appendSymbolLayer( QgsSymbolLayerV2* layer );

//! delete symbol layer at specified index
bool deleteSymbolLayer( int index );

//! remove symbol layer from the list and return pointer to it
/**
* Remove symbol layer from the list and return pointer to it.
* Ownership is handed to the caller.
* @param index The index of the layer to remove
* @return A pointer to the removed layer
*/
QgsSymbolLayerV2* takeSymbolLayer( int index );

//! delete layer at specified index and set a new one
Expand Down
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/core/qgswidgetwrapper.h
Expand Up @@ -127,6 +127,8 @@ class GUI_EXPORT QgsWidgetWrapper : public QObject
* another suitable widget type instead.
*
* @return Validity status of this widget.
*
* @note Added in 2.12
*/
virtual bool valid() = 0;

Expand Down

0 comments on commit 6b25fe5

Please sign in to comment.