mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-16 00:06:09 -05:00
[processing] align the "Iterate over layer" button (#4796)
This commit is contained in:
parent
b811761873
commit
b57cd0deb1
@ -41,7 +41,7 @@ from qgis.core import (QgsProcessingParameterDefinition,
|
||||
QgsProcessingParameterFeatureSink,
|
||||
QgsProcessingParameterVectorOutput)
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtCore import QCoreApplication
|
||||
from qgis.PyQt.QtCore import QCoreApplication, Qt
|
||||
from qgis.PyQt.QtWidgets import (QWidget, QHBoxLayout, QToolButton,
|
||||
QLabel, QCheckBox)
|
||||
from qgis.PyQt.QtGui import QIcon
|
||||
@ -121,6 +121,7 @@ class ParametersPanel(BASE, WIDGET):
|
||||
button.setToolTip(self.tr('Iterate over this layer, creating a separate output for every feature in the layer'))
|
||||
button.setCheckable(True)
|
||||
layout.addWidget(button)
|
||||
layout.setAlignment(button, Qt.AlignTop)
|
||||
self.iterateButtons[param.name()] = button
|
||||
button.toggled.connect(self.buttonToggled)
|
||||
widget = QWidget()
|
||||
|
||||
@ -89,7 +89,7 @@ from qgis.gui import (
|
||||
QgsMapLayerComboBox,
|
||||
QgsProjectionSelectionWidget,
|
||||
)
|
||||
from qgis.PyQt.QtCore import pyqtSignal, QObject, QVariant
|
||||
from qgis.PyQt.QtCore import pyqtSignal, QObject, QVariant, Qt
|
||||
from qgis.utils import iface
|
||||
|
||||
from processing.gui.NumberInputPanel import NumberInputPanel, ModellerNumberInputPanel
|
||||
@ -762,11 +762,13 @@ class VectorWidgetWrapper(WidgetWrapper):
|
||||
layout.setSpacing(2)
|
||||
self.combo = QgsMapLayerComboBox()
|
||||
layout.addWidget(self.combo)
|
||||
layout.setAlignment(self.combo, Qt.AlignTop)
|
||||
btn = QToolButton()
|
||||
btn.setText('...')
|
||||
btn.setToolTip(self.tr("Select file"))
|
||||
btn.clicked.connect(self.selectFile)
|
||||
layout.addWidget(btn)
|
||||
layout.setAlignment(btn, Qt.AlignTop)
|
||||
|
||||
vl = QVBoxLayout()
|
||||
vl.setMargin(0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user