Skip to content
Permalink
Browse files

[processing] align the "Iterate over layer" button (#4796)

  • Loading branch information
DelazJ authored and nirvn committed Jul 3, 2017
1 parent b811761 commit b57cd0deb197c6fc119934c853f15e5822427b2c
Showing with 5 additions and 2 deletions.
  1. +2 −1 python/plugins/processing/gui/ParametersPanel.py
  2. +3 −1 python/plugins/processing/gui/wrappers.py
@@ -41,7 +41,7 @@
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 @@ def initWidgets(self):
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 @@
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 @@ def createWidget(self):
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)

0 comments on commit b57cd0d

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