mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix unused variable warning
This commit is contained in:
parent
f3ac8bc2eb
commit
0d9b223856
@ -54,6 +54,8 @@ class QgsPropertyDefinition
|
||||
|
||||
DataType dataType() const;
|
||||
|
||||
StandardPropertyTemplate standardTemplate() const;
|
||||
|
||||
};
|
||||
|
||||
class QgsProperty
|
||||
|
@ -32,7 +32,7 @@ QgsPropertyDefinition::QgsPropertyDefinition( const QString& name, const QString
|
||||
, mDescription( description )
|
||||
, mStandardType( type )
|
||||
{
|
||||
switch ( type )
|
||||
switch ( mStandardType )
|
||||
{
|
||||
case Boolean:
|
||||
mTypes = DataTypeBoolean;
|
||||
|
@ -141,6 +141,12 @@ class CORE_EXPORT QgsPropertyDefinition
|
||||
*/
|
||||
DataType dataType() const { return mTypes; }
|
||||
|
||||
/**
|
||||
* Returns the property's standard template, if applicable. Non standard
|
||||
* types will return the Custom template.
|
||||
*/
|
||||
StandardPropertyTemplate standardTemplate() const { return mStandardType; }
|
||||
|
||||
private:
|
||||
|
||||
QString mName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user