Skip to content

Commit b7352bb

Browse files
committedMay 29, 2017
Flip Transparency property type to Opacity
1 parent 07b45cd commit b7352bb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎python/core/qgsproperty.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class QgsPropertyDefinition
3737
Double0To1,
3838
Rotation,
3939
String,
40-
Transparency,
40+
Opacity,
4141
RenderUnits,
4242
ColorWithAlpha,
4343
ColorNoAlpha,

‎src/core/composer/qgscomposerobject.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ void QgsComposerObject::initPropertyDefinitions()
5050
{ QgsComposerObject::ItemWidth, QgsPropertyDefinition( "dataDefinedWidth", QObject::tr( "Width" ), QgsPropertyDefinition::DoublePositive ) },
5151
{ QgsComposerObject::ItemHeight, QgsPropertyDefinition( "dataDefinedHeight", QObject::tr( "Height" ), QgsPropertyDefinition::DoublePositive ) },
5252
{ QgsComposerObject::ItemRotation, QgsPropertyDefinition( "dataDefinedRotation", QObject::tr( "Rotation angle" ), QgsPropertyDefinition::Rotation ) },
53-
{ QgsComposerObject::Transparency, QgsPropertyDefinition( "dataDefinedTransparency", QObject::tr( "Transparency" ), QgsPropertyDefinition::Transparency ) },
54-
{ QgsComposerObject::Opacity, QgsPropertyDefinition( "dataDefinedOpacity", QObject::tr( "Opacity" ), QgsPropertyDefinition::Transparency ) },
53+
{ QgsComposerObject::Transparency, QgsPropertyDefinition( "dataDefinedTransparency", QObject::tr( "Transparency" ), QgsPropertyDefinition::Opacity ) },
54+
{ QgsComposerObject::Opacity, QgsPropertyDefinition( "dataDefinedOpacity", QObject::tr( "Opacity" ), QgsPropertyDefinition::Opacity ) },
5555
{ QgsComposerObject::BlendMode, QgsPropertyDefinition( "dataDefinedBlendMode", QObject::tr( "Blend mode" ), QgsPropertyDefinition::BlendMode ) },
5656
{ QgsComposerObject::ExcludeFromExports, QgsPropertyDefinition( "dataDefinedExcludeExports", QObject::tr( "Exclude item from exports" ), QgsPropertyDefinition::Boolean ) },
5757
{ QgsComposerObject::FrameColor, QgsPropertyDefinition( "dataDefinedFrameColor", QObject::tr( "Frame color" ), QgsPropertyDefinition::ColorWithAlpha ) },

‎src/core/qgsproperty.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ QgsPropertyDefinition::QgsPropertyDefinition( const QString &name, const QString
7979
mHelpText = QObject::tr( "string of variable length" );
8080
break;
8181

82-
case Transparency:
82+
case Opacity:
8383
mTypes = DataTypeNumeric;
8484
mHelpText = QObject::tr( "int [0-100]" );
8585
break;

‎src/core/qgsproperty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CORE_EXPORT QgsPropertyDefinition
5959
Double0To1, //!< Double value between 0-1 (inclusive)
6060
Rotation, //!< Rotation (value between 0-360 degrees)
6161
String, //!< Any string value
62-
Transparency, //!< Transparency (0-100)
62+
Opacity, //!< Opacity (0-100)
6363
RenderUnits, //!< Render units (eg mm/pixels/map units)
6464
ColorWithAlpha, //!< Color with alpha channel
6565
ColorNoAlpha, //!< Color with no alpha channel

0 commit comments

Comments
 (0)
Please sign in to comment.