identation update

This commit is contained in:
Juergen E. Fischer 2015-02-18 08:37:00 +01:00
parent 1f0f39b4e5
commit fc22bf19b1
4 changed files with 5 additions and 6 deletions

View File

@ -575,7 +575,7 @@ void QgsComposerAttributeTableWidget::updateRelationsCombo()
if ( atlasLayer )
{
QList<QgsRelation> relations = QgsProject::instance()->relationManager()->referencedRelations( atlasLayer );
Q_FOREACH( const QgsRelation& relation, relations )
Q_FOREACH ( const QgsRelation& relation, relations )
{
mRelationsComboBox->addItem( relation.name(), relation.id() );
}

View File

@ -674,7 +674,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
QgsPreviewEffect* mPreviewEffect;
QgsRectangle imageRect(const QImage& img , const QgsMapSettings& mapSettings );
QgsRectangle imageRect( const QImage& img, const QgsMapSettings& mapSettings );
QgsSnappingUtils* mSnappingUtils;

View File

@ -315,7 +315,7 @@ QString QgsBench::serialize( QMap<QString, QVariant> theMap, int level )
QMap<QString, QVariant>::const_iterator i = theMap.constBegin();
while ( i != theMap.constEnd() )
{
switch ( (QMetaType::Type)i.value().type() )
switch (( QMetaType::Type )i.value().type() )
{
case QMetaType::Int:
list.append( space2 + "\"" + i.key() + "\": " + QString( "%1" ).arg( i.value().toInt() ) );

View File

@ -44,11 +44,11 @@ def elemIsDocumentableClass(elem):
def elemIsDocumentableMember(elem):
if elem.get('kind') == 'variable':
return False
return False
#only public or protected members should be documented
if not elem.get('prot') in ('public','protected'):
return False
return False
#ignore reimplemented methods
#use two different tests, as doxygen will not detect reimplemented qt methods
@ -120,4 +120,3 @@ class TestQgsDocCoverage(TestCase):
if __name__ == '__main__':
unittest.main()