Skip to content

Commit c842e54

Browse files
committed
fix flag and group vector layer properties
1 parent 2240e1f commit c842e54

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/app/qgsappscreenshots.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ void QgsAppScreenShots::takePicturesOf( Categories categories )
193193
if ( !categories || categories.testFlag( GlobalOptions ) )
194194
takeGlobalOptions();
195195

196-
if ( !categories || categories.testFlag( Symbol25D ) )
197-
take25dSymbol();
198-
199196
if ( !categories || categories.testFlag( VectorLayerProperties ) )
197+
{
200198
takeVectorLayerProperties();
199+
takeVectorLayerProperties25DSymbol();
200+
}
201201
}
202202

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

246246
//---------------
247247

248-
void QgsAppScreenShots::take25dSymbol()
248+
void QgsAppScreenShots::takeVectorLayerProperties25DSymbol()
249249
{
250250
QString folder = QLatin1String( "working_with_vector/img/auto_generated/vector_layer_properties/" );
251251
QgsVectorLayerProperties *dlg = new QgsVectorLayerProperties( mPolygonLayer, QgisApp::instance() );

src/app/qgsappscreenshots.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ class QgsAppScreenShots
4646
enum Category
4747
{
4848
All = 0,
49-
GlobalOptions = 1 << 1,
50-
Symbol25D = 1 << 2,
51-
VectorLayerProperties = 1 << 3,
49+
GlobalOptions = 1 << 0,
50+
VectorLayerProperties = 1 << 1,
5251
};
5352
Q_ENUM( Category )
5453
Q_DECLARE_FLAGS( Categories, Category )
@@ -80,7 +79,7 @@ class QgsAppScreenShots
8079
void saveScreenshot( QPixmap &pixmap, const QString &name, const QString &folder );
8180

8281
void takeVectorLayerProperties();
83-
void take25dSymbol();
82+
void takeVectorLayerProperties25DSymbol();
8483
void takeGlobalOptions();
8584

8685
QString mSaveDirectory;

0 commit comments

Comments
 (0)