Skip to content
Permalink
Browse files

qgsstyle.cpp: change protected to private

  • Loading branch information
rouault committed Jun 4, 2018
1 parent d5afc71 commit 0304ec49b642f5a878ce6ec44aece8c7730f1c4b
Showing with 1 addition and 48 deletions.
  1. +0 −45 python/core/auto_generated/symbology/qgsstyle.sip.in
  2. +1 −3 src/core/symbology/qgsstyle.h
@@ -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 *
* *
@@ -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;
@@ -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.
You can’t perform that action at this time.