Skip to content
Permalink
Browse files

fix flag and group vector layer properties

  • Loading branch information
3nids committed Oct 4, 2018
1 parent 2240e1f commit c842e544c3a9a8b80143c977031b7207e2f29edc
Showing with 7 additions and 8 deletions.
  1. +4 −4 src/app/qgsappscreenshots.cpp
  2. +3 −4 src/app/qgsappscreenshots.h
@@ -193,11 +193,11 @@ void QgsAppScreenShots::takePicturesOf( Categories categories )
if ( !categories || categories.testFlag( GlobalOptions ) )
takeGlobalOptions();

if ( !categories || categories.testFlag( Symbol25D ) )
take25dSymbol();

if ( !categories || categories.testFlag( VectorLayerProperties ) )
{
takeVectorLayerProperties();
takeVectorLayerProperties25DSymbol();
}
}

void QgsAppScreenShots::setGradientSize( int size )
@@ -245,7 +245,7 @@ void QgsAppScreenShots::takeVectorLayerProperties()

//---------------

void QgsAppScreenShots::take25dSymbol()
void QgsAppScreenShots::takeVectorLayerProperties25DSymbol()
{
QString folder = QLatin1String( "working_with_vector/img/auto_generated/vector_layer_properties/" );
QgsVectorLayerProperties *dlg = new QgsVectorLayerProperties( mPolygonLayer, QgisApp::instance() );
@@ -46,9 +46,8 @@ class QgsAppScreenShots
enum Category
{
All = 0,
GlobalOptions = 1 << 1,
Symbol25D = 1 << 2,
VectorLayerProperties = 1 << 3,
GlobalOptions = 1 << 0,
VectorLayerProperties = 1 << 1,
};
Q_ENUM( Category )
Q_DECLARE_FLAGS( Categories, Category )
@@ -80,7 +79,7 @@ class QgsAppScreenShots
void saveScreenshot( QPixmap &pixmap, const QString &name, const QString &folder );

void takeVectorLayerProperties();
void take25dSymbol();
void takeVectorLayerProperties25DSymbol();
void takeGlobalOptions();

QString mSaveDirectory;

0 comments on commit c842e54

Please sign in to comment.
You can’t perform that action at this time.