Skip to content

Commit

Permalink
qgsstyle.cpp: change protected to private
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 4, 2018
1 parent d5afc71 commit 0304ec4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 48 deletions.
45 changes: 0 additions & 45 deletions python/core/auto_generated/symbology/qgsstyle.sip.in
Expand Up @@ -454,55 +454,10 @@ Is emitted every time a new symbol has been added to the database
void groupsModified();
%Docstring
Is emitted every time a tag or smartgroup has been added, removed, or renamed
%End

protected:





bool openDatabase( const QString &filename );
%Docstring
Convenience function to open the DB and return a sqlite3 object
%End

bool runEmptyQuery( const QString &query );
%Docstring
Convenience function that would run queries which don't generate return values

:param query: query to run

:return: success true on success
%End

int getId( const QString &table, const QString &name );
%Docstring
Gets the id from the table for the given name from the database, 0 if not found
%End

QString getName( const QString &table, int id ) const;
%Docstring
Gets the name from the table for the given id from the database, empty if not found
%End

bool updateSymbol( StyleEntity type, const QString &name );
%Docstring
Updates the properties of an existing symbol/colorramp

.. note::

This should not be called separately, only called through addSymbol or addColorRamp

:param type: is either SymbolEntity or ColorrampEntity
:param name: is the name of an existing symbol or a color ramp

:return: Success state of the update operation
%End

};


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
4 changes: 1 addition & 3 deletions src/core/symbology/qgsstyle.h
Expand Up @@ -420,7 +420,7 @@ class CORE_EXPORT QgsStyle : public QObject
//! Is emitted every time a tag or smartgroup has been added, removed, or renamed
void groupsModified();

protected:
private:

QgsSymbolMap mSymbols;
QgsVectorColorRampMap mColorRamps;
Expand Down Expand Up @@ -459,9 +459,7 @@ class CORE_EXPORT QgsStyle : public QObject
*/
bool updateSymbol( StyleEntity type, const QString &name );

private:
Q_DISABLE_COPY( QgsStyle )
};


#endif

0 comments on commit 0304ec4

Please sign in to comment.