@@ -55,6 +55,7 @@ QgsProcessingMapLayerComboBox::QgsProcessingMapLayerComboBox( const QgsProcessin
55
55
mSelectButton ->setToolTip ( tr ( " Select input" ) );
56
56
layout->addWidget ( mSelectButton );
57
57
layout->setAlignment ( mSelectButton , Qt::AlignTop );
58
+ int iconSize = QgsGuiUtils::scaleIconSize ( 24 );
58
59
if ( mParameter ->type () == QgsProcessingParameterFeatureSource::typeName () && type == QgsProcessingGui::Standard )
59
60
{
60
61
mIterateButton = new QToolButton ();
@@ -63,15 +64,17 @@ QgsProcessingMapLayerComboBox::QgsProcessingMapLayerComboBox( const QgsProcessin
63
64
mIterateButton ->setCheckable ( true );
64
65
mIterateButton ->setAutoRaise ( true );
65
66
66
- int iconSize = QgsGuiUtils::scaleIconSize ( 24 );
67
-
68
67
// button width is 1.25 * icon size, height 1.1 * icon size. But we round to ensure even pixel sizes for equal margins
69
68
mIterateButton ->setFixedSize ( 2 * static_cast < int >( 1.25 * iconSize / 2.0 ), 2 * static_cast < int >( iconSize * 1.1 / 2.0 ) );
70
69
mIterateButton ->setIconSize ( QSize ( iconSize, iconSize ) );
71
70
72
71
layout->addWidget ( mIterateButton );
73
72
layout->setAlignment ( mIterateButton , Qt::AlignTop );
73
+ }
74
74
75
+ if ( mParameter ->type () == QgsProcessingParameterFeatureSource::typeName () && ( type == QgsProcessingGui::Standard
76
+ || type == QgsProcessingGui::Batch ) )
77
+ {
75
78
mSettingsButton = new QToolButton ();
76
79
mSettingsButton ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " mActionOptions.svg" ) ) );
77
80
mSettingsButton ->setToolTip ( tr ( " Advanced options" ) );
0 commit comments