mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
indentation update/fix (followup 9ab22bd)
This commit is contained in:
parent
10e09bc76b
commit
f76d7301a3
@ -28,8 +28,7 @@ __revision__ = '$Format:%H$'
|
||||
|
||||
from qgis.core import QgsField, QgsExpression, QgsFeature
|
||||
from processing.core.GeoAlgorithm import GeoAlgorithm
|
||||
from processing.core.GeoAlgorithmExecutionException import \
|
||||
GeoAlgorithmExecutionException
|
||||
from processing.core.GeoAlgorithmExecutionException import GeoAlgorithmExecutionException
|
||||
from processing.core.parameters import ParameterVector
|
||||
from processing.core.outputs import OutputVector
|
||||
from processing.tools import dataobjects, vector
|
||||
|
@ -71,7 +71,7 @@ class FieldsMapperParametersPanel(ParametersPanel):
|
||||
sender = self.sender()
|
||||
if not isinstance(sender, QComboBox):
|
||||
return
|
||||
if not sender.name in self.dependentItems:
|
||||
if sender.name not in self.dependentItems:
|
||||
return
|
||||
layer = sender.itemData(sender.currentIndex())
|
||||
children = self.dependentItems[sender.name]
|
||||
|
@ -454,7 +454,7 @@ class FieldsMappingPanel(QtGui.QWidget, Ui_Form):
|
||||
|
||||
def updateLayerCombo(self):
|
||||
layers = dataobjects.getVectorLayers()
|
||||
layers.sort(key = lambda lay: lay.name())
|
||||
layers.sort(key=lambda lay: lay.name())
|
||||
for layer in layers:
|
||||
self.layerCombo.addItem(layer.name(), layer)
|
||||
|
||||
|
@ -86,7 +86,7 @@ class GeometryPredicateSelectionPanel(QWidget, Ui_Form):
|
||||
for predicate in ParameterGeometryPredicate.predicates:
|
||||
widget = self.getWidget(predicate)
|
||||
widget.setEnabled(predicate in self.enabledPredicated
|
||||
and not predicate in unusablePredicates)
|
||||
and predicate not in unusablePredicates)
|
||||
|
||||
def setRows(self, rows):
|
||||
widgets = []
|
||||
|
@ -42,13 +42,13 @@ class QgsExpressionItemSearchProxy : public QSortFilterProxyModel
|
||||
|
||||
return QSortFilterProxyModel::filterAcceptsRow( source_row, source_parent );
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
/** An expression item that can be used in the QgsExpressionBuilderWidget tree.
|
||||
*/
|
||||
class QgsExpressionItem : public QStandardItem
|
||||
{
|
||||
public:
|
||||
public:
|
||||
enum ItemType
|
||||
{
|
||||
Header,
|
||||
|
@ -125,11 +125,11 @@ void QgsMapOverviewCanvas::drawExtentRect()
|
||||
const QPolygonF& vPoly = mMapCanvas->mapSettings().visiblePolygon();
|
||||
const QgsMapToPixel& cXf = mSettings.mapToPixel();
|
||||
QVector< QPoint > pts;
|
||||
pts.push_back( cXf.transform( QgsPoint(vPoly[0]) ).toQPointF().toPoint() );
|
||||
pts.push_back( cXf.transform( QgsPoint(vPoly[1]) ).toQPointF().toPoint() );
|
||||
pts.push_back( cXf.transform( QgsPoint(vPoly[2]) ).toQPointF().toPoint() );
|
||||
pts.push_back( cXf.transform( QgsPoint(vPoly[3]) ).toQPointF().toPoint() );
|
||||
mPanningWidget->setPolygon( QPolygon(pts) );
|
||||
pts.push_back( cXf.transform( QgsPoint( vPoly[0] ) ).toQPointF().toPoint() );
|
||||
pts.push_back( cXf.transform( QgsPoint( vPoly[1] ) ).toQPointF().toPoint() );
|
||||
pts.push_back( cXf.transform( QgsPoint( vPoly[2] ) ).toQPointF().toPoint() );
|
||||
pts.push_back( cXf.transform( QgsPoint( vPoly[3] ) ).toQPointF().toPoint() );
|
||||
mPanningWidget->setPolygon( QPolygon( pts ) );
|
||||
mPanningWidget->show(); // show if hidden
|
||||
}
|
||||
|
||||
|
@ -1573,15 +1573,15 @@ class QgsSvgListModel : public QAbstractListModel
|
||||
}
|
||||
|
||||
return QVariant();
|
||||
}
|
||||
}
|
||||
|
||||
protected:
|
||||
protected:
|
||||
QStringList mSvgFiles;
|
||||
};
|
||||
|
||||
class QgsSvgGroupsModel : public QStandardItemModel
|
||||
{
|
||||
public:
|
||||
public:
|
||||
QgsSvgGroupsModel( QObject* parent ) : QStandardItemModel( parent )
|
||||
{
|
||||
QStringList svgPaths = QgsApplication::svgPaths();
|
||||
|
@ -40,7 +40,7 @@ class QgsValidatedDoubleSpinBox : public QDoubleSpinBox
|
||||
return QValidator::Intermediate;
|
||||
}
|
||||
return QValidator::Acceptable;
|
||||
}
|
||||
}
|
||||
|
||||
StepEnabled stepEnabled() const override
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user