indentation update

This commit is contained in:
Juergen E. Fischer 2014-12-30 22:06:00 +01:00
parent e6561cec68
commit bff64fdef9
66 changed files with 122 additions and 114 deletions

View File

@ -57,7 +57,7 @@ class QgsDataDefined
// @note not available in python bindings
//QMap< QString, QString > toMap();
/**Returns a DOM element containing the properties of the data defined container.
* @param DOM document
* @param elementName name for DOM element
@ -75,7 +75,7 @@ class QgsDataDefined
* @see toXmlElement
*/
bool setFromXmlElement( const QDomElement& element );
bool operator==( const QgsDataDefined &other ) const;
bool operator!=( const QgsDataDefined &other ) const;

View File

@ -130,13 +130,13 @@ class DlgSqlWindow(QDialog, Ui_Dialog):
self.editSql.setFocus()
def executeSql(self):
sql = ""
if self.editSql.hasSelectedText():
sql = self.editSql.selectedText()
else:
sql = self.editSql.text()
if sql == "":
return

View File

@ -153,7 +153,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
/** Returns and adjusted uri for the layer based on current and available CRS as well as the last selected image format
* @note added in 2.4
*/
QString crsAndFormatAdjustedLayerUri(const QString& uri, const QStringList& supportedCrs, const QStringList& supportedFormats) const;
QString crsAndFormatAdjustedLayerUri( const QString& uri, const QStringList& supportedCrs, const QStringList& supportedFormats ) const;
/** Add a 'pre-made' map layer to the project */
void addMapLayer( QgsMapLayer *theMapLayer );

View File

@ -66,7 +66,7 @@ QgisAppInterface::QgisAppInterface( QgisApp * _qgis )
connect( qgis, SIGNAL( projectRead() ),
this, SIGNAL( projectRead() ) );
connect( qgis, SIGNAL( layerSavedAs( QgsMapLayer*, QString ) ),
this, SIGNAL( layerSavedAs(QgsMapLayer*, QString ) ) );
this, SIGNAL( layerSavedAs( QgsMapLayer*, QString ) ) );
}
QgisAppInterface::~QgisAppInterface()

View File

@ -28,7 +28,7 @@ class QgsAdvancedDigitizingDockWidget;
class APP_EXPORT QgsAdvancedDigitizingCanvasItem : public QgsMapCanvasItem
{
public:
explicit QgsAdvancedDigitizingCanvasItem(QgsMapCanvas* canvas, QgsAdvancedDigitizingDockWidget* cadDockWidget );
explicit QgsAdvancedDigitizingCanvasItem( QgsMapCanvas* canvas, QgsAdvancedDigitizingDockWidget* cadDockWidget );
void paint( QPainter *painter );

View File

@ -636,7 +636,7 @@ string ASBeautifier::beautify(const string &originalLine)
{
string line;
bool isInLineComment = false;
bool lineStartsInComment = false;
bool lineStartsInComment;
bool isInClass = false;
bool isInSwitch = false;
bool isImmediatelyAfterConst = false;

View File

@ -1370,13 +1370,15 @@ static QVariant fcnIf( const QVariantList &values, const QgsFeature *f, QgsExpre
ENSURE_NO_EVAL_ERROR;
QVariant value = node->eval( parent, f );
ENSURE_NO_EVAL_ERROR;
if ( value.toBool() ) {
if ( value.toBool() )
{
node = getNode( values.at( 1 ), parent );
ENSURE_NO_EVAL_ERROR;
value = node->eval( parent, f );
ENSURE_NO_EVAL_ERROR;
}
else {
else
{
node = getNode( values.at( 2 ), parent );
ENSURE_NO_EVAL_ERROR;
value = node->eval( parent, f );
@ -2565,15 +2567,17 @@ QVariant QgsExpression::NodeFunction::eval( QgsExpression* parent, const QgsFeat
foreach ( Node* n, mArgs->list() )
{
QVariant v;
if ( fd->lazyEval() ) {
if ( fd->lazyEval() )
{
// Pass in the node for the function to eval as it needs.
v = QVariant::fromValue( n );
}
else {
else
{
v = n->eval( parent, f );
ENSURE_NO_EVAL_ERROR;
if ( isNull( v ) && fd->name() != "coalesce" )
return QVariant(); // all "normal" functions return NULL, when any parameter is NULL (so coalesce is abnormal)
return QVariant(); // all "normal" functions return NULL, when any parameter is NULL (so coalesce is abnormal)
}
argValues.append( v );
}

View File

@ -26,7 +26,7 @@
#include "qgsconfig.h"
#ifndef CMAKE_SOURCE_DIR
#error CMAKE_SOURCE_DIR undefinied
#error CMAKE_SOURCE_DIR undefined
#endif // CMAKE_SOURCE_DIR
int QgsLogger::sDebugLevel = -999; // undefined value

View File

@ -166,7 +166,7 @@ void QgsMapSettings::updateDerived()
visibleExtent().center().y(),
outputSize().width(),
outputSize().height(),
mRotation);
mRotation );
#if 1 // set visible extent taking rotation in consideration
if ( mRotation )

View File

@ -4127,18 +4127,20 @@ void QgsPalLabeling::drawLabelCandidateRect( pal::LabelPosition* lp, QPainter* p
#if 1 // TODO: generalize some of this
double w = lp->getWidth();
double h = lp->getHeight();
double cx = lp->getX() + w/2.0;
double cy = lp->getY() + h/2.0;
double scale = 1.0/xform->mapUnitsPerPixel();
double cx = lp->getX() + w / 2.0;
double cy = lp->getY() + h / 2.0;
double scale = 1.0 / xform->mapUnitsPerPixel();
double rotation = xform->mapRotation();
double sw = w * scale;
double sh = h * scale;
QRectF rect( -sw/2, -sh/2, sw, sh );
QRectF rect( -sw / 2, -sh / 2, sw, sh );
painter->translate( xform->transform( QPointF(cx, cy) ).toQPointF() );
if ( rotation ) {
painter->translate( xform->transform( QPointF( cx, cy ) ).toQPointF() );
if ( rotation )
{
// Only if not horizontal
if ( lp->getFeaturePart()->getLayer()->getArrangement() != P_HORIZ ) {
if ( lp->getFeaturePart()->getLayer()->getArrangement() != P_HORIZ )
{
painter->rotate( rotation );
}
}
@ -4204,7 +4206,7 @@ void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QgsRenderContext& con
}
else if ( drawType == QgsPalLabeling::LabelBuffer
|| drawType == QgsPalLabeling::LabelText )
|| drawType == QgsPalLabeling::LabelText )
{
// TODO: optimize access :)
@ -4290,17 +4292,19 @@ void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QgsRenderContext& con
LabelPosition* lp = label;
double w = lp->getWidth();
double h = lp->getHeight();
double cx = lp->getX() + w/2.0;
double cy = lp->getY() + h/2.0;
double scale = 1.0/xform->mapUnitsPerPixel();
double cx = lp->getX() + w / 2.0;
double cy = lp->getY() + h / 2.0;
double scale = 1.0 / xform->mapUnitsPerPixel();
double rotation = xform->mapRotation();
double sw = w * scale;
double sh = h * scale;
QRectF rect( -sw/2, -sh/2, sw, sh );
painter->translate( xform->transform( QPointF(cx, cy) ).toQPointF() );
if ( rotation ) {
QRectF rect( -sw / 2, -sh / 2, sw, sh );
painter->translate( xform->transform( QPointF( cx, cy ) ).toQPointF() );
if ( rotation )
{
// Only if not horizontal
if ( lp->getFeaturePart()->getLayer()->getArrangement() != P_HORIZ ) {
if ( lp->getFeaturePart()->getLayer()->getArrangement() != P_HORIZ )
{
painter->rotate( rotation );
}
}

View File

@ -44,11 +44,11 @@ QgsSnapper::~QgsSnapper()
int QgsSnapper::snapPoint( const QPoint& startPoint, QList<QgsSnappingResult>& snappingResult, const QList<QgsPoint>& excludePoints )
{
QgsPoint mapCoordPoint = mMapSettings.mapToPixel().toMapCoordinates( startPoint.x(), startPoint.y() );
return snapPoint( mapCoordPoint, snappingResult, excludePoints);
return snapPoint( mapCoordPoint, snappingResult, excludePoints );
}
int QgsSnapper::snapPoint( const QgsPoint& mapCoordPoint, QList<QgsSnappingResult>& snappingResult, const QList<QgsPoint>& excludePoints )
{
{
snappingResult.clear();
QMultiMap<double, QgsSnappingResult> snappingResultList;//all snapping results

View File

@ -726,9 +726,9 @@ void QgsMapCanvas::rendererJobFinished()
// This is an hack to pass QgsMapCanvasItem::setRect what it
// expects (encoding of position and size of the item)
const QgsMapToPixel& m2p = mSettings.mapToPixel();
QgsPoint topLeft = m2p.toMapPoint(0,0);
QgsPoint topLeft = m2p.toMapPoint( 0, 0 );
double res = m2p.mapUnitsPerPixel();
QgsRectangle rect(topLeft.x(), topLeft.y(), topLeft.x() + img.width()*res, topLeft.y() - img.height()*res);
QgsRectangle rect( topLeft.x(), topLeft.y(), topLeft.x() + img.width()*res, topLeft.y() - img.height()*res );
mMap->setContent( img, rect );
}

View File

@ -83,10 +83,10 @@ void QgsMapCanvasItem::setRect( const QgsRectangle& rect )
{
// rect encodes origin of the item (xMin,yMax from map to canvas units)
// and size (rect size / map units per pixel)
r.setTopLeft( toCanvasCoordinates( QPointF(mRect.xMinimum(), mRect.yMaximum()) ) );
r.setTopLeft( toCanvasCoordinates( QPointF( mRect.xMinimum(), mRect.yMaximum() ) ) );
const QgsMapToPixel* m2p = mMapCanvas->getCoordinateTransform();
double res = m2p->mapUnitsPerPixel();
r.setSize( QSizeF(mRect.width()/res, mRect.height()/res) );
r.setSize( QSizeF( mRect.width() / res, mRect.height() / res ) );
}
// set position in canvas where the item will have coordinate (0,0)

View File

@ -117,7 +117,7 @@ int QgsMapCanvasSnapper::snapToCurrentLayer( const QPoint& p, QList<QgsSnappingR
int QgsMapCanvasSnapper::snapToBackgroundLayers( const QPoint& p, QList<QgsSnappingResult>& results, const QList<QgsPoint>& excludePoints )
{
const QgsPoint mapCoordPoint = mMapCanvas->mapSettings().mapToPixel().toMapCoordinates( p.x(), p.y() );
return snapToBackgroundLayers(mapCoordPoint,results,excludePoints);
return snapToBackgroundLayers( mapCoordPoint, results, excludePoints );
}
int QgsMapCanvasSnapper::snapToBackgroundLayers( const QgsPoint& point, QList<QgsSnappingResult>& results, const QList<QgsPoint>& excludePoints )

View File

@ -212,7 +212,7 @@ int main( int argc, char **argv )
G_get_cellhd( rast_opt->answer, "", &window );
G_set_window( &window );
fd = G_open_cell_old( rast_opt->answer, "" );
// wait for coors from stdin
// wait for coords from stdin
while ( fgets( buff, 100, stdin ) != 0 )
{
if ( sscanf( buff, "%lf%lf", &x, &y ) != 2 )

View File

@ -19,7 +19,7 @@ Email : sherman at mrcc dot com
#include <qgsapplication.h>
#include <qgsproviderregistry.h>
class TestQgsVectorAnalyzer: public QObject
class TestQgsVectorAnalyzer : public QObject
{
Q_OBJECT
private slots:

View File

@ -23,7 +23,7 @@
/** \ingroup UnitTests
* This is a unit test for the zonal statistics class
*/
class TestQgsZonalStatistics: public QObject
class TestQgsZonalStatistics : public QObject
{
Q_OBJECT
private slots:

View File

@ -33,7 +33,7 @@
/** \ingroup UnitTests
* This is a unit test for the QgisApp clipboard.
*/
class TestQgisAppClipboard: public QObject
class TestQgisAppClipboard : public QObject
{
Q_OBJECT
private slots:

View File

@ -40,7 +40,7 @@
/** \ingroup UnitTests
* This is a regression test for ticket #992.
*/
class Regression992: public QObject
class Regression992 : public QObject
{
Q_OBJECT
private slots:

View File

@ -33,7 +33,7 @@
#include <QtTest/QSignalSpy>
#include <QtTest/QtTest>
class TestQgsAtlasComposition: public QObject
class TestQgsAtlasComposition : public QObject
{
Q_OBJECT
private slots:

View File

@ -35,7 +35,7 @@
/** \ingroup UnitTests
* This is a unit test for layer blend modes
*/
class TestQgsBlendModes: public QObject
class TestQgsBlendModes : public QObject
{
Q_OBJECT
private slots:

View File

@ -32,7 +32,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerDD: public QObject
class TestQgsComposerDD : public QObject
{
Q_OBJECT
private slots:

View File

@ -25,7 +25,7 @@
#include <QColor>
#include <QPainter>
class TestQgsComposerEffects: public QObject
class TestQgsComposerEffects : public QObject
{
Q_OBJECT
private slots:

View File

@ -22,7 +22,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerGroup: public QObject
class TestQgsComposerGroup : public QObject
{
Q_OBJECT
private slots:

View File

@ -24,7 +24,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerHtml: public QObject
class TestQgsComposerHtml : public QObject
{
Q_OBJECT
private slots:

View File

@ -26,7 +26,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerLabel: public QObject
class TestQgsComposerLabel : public QObject
{
Q_OBJECT
private slots:

View File

@ -26,7 +26,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerMap: public QObject
class TestQgsComposerMap : public QObject
{
Q_OBJECT
private slots:

View File

@ -26,7 +26,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerMapGrid: public QObject
class TestQgsComposerMapGrid : public QObject
{
Q_OBJECT
private slots:

View File

@ -28,7 +28,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerMapOverview: public QObject
class TestQgsComposerMapOverview : public QObject
{
Q_OBJECT
private slots:

View File

@ -22,7 +22,7 @@
#include <QtTest/QtTest>
#include <QList>
class TestQgsComposerModel: public QObject
class TestQgsComposerModel : public QObject
{
Q_OBJECT

View File

@ -23,7 +23,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerMultiFrame: public QObject
class TestQgsComposerMultiFrame : public QObject
{
Q_OBJECT
private slots:

View File

@ -22,7 +22,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerObject: public QObject
class TestQgsComposerObject : public QObject
{
Q_OBJECT
private slots:

View File

@ -29,7 +29,7 @@
#include <QColor>
#include <QPainter>
class TestQgsComposerPaper: public QObject
class TestQgsComposerPaper : public QObject
{
Q_OBJECT
private slots:

View File

@ -24,7 +24,7 @@
#include <QColor>
#include <QPainter>
class TestQgsComposerPicture: public QObject
class TestQgsComposerPicture : public QObject
{
Q_OBJECT
private slots:

View File

@ -31,7 +31,7 @@
#include <QColor>
#include <QPainter>
class TestQgsComposerRotation: public QObject
class TestQgsComposerRotation : public QObject
{
Q_OBJECT
private slots:

View File

@ -28,7 +28,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerScaleBar: public QObject
class TestQgsComposerScaleBar : public QObject
{
Q_OBJECT
private slots:

View File

@ -28,7 +28,7 @@
#include <QColor>
#include <QPainter>
class TestQgsComposerShapes: public QObject
class TestQgsComposerShapes : public QObject
{
Q_OBJECT
private slots:

View File

@ -28,7 +28,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerTable: public QObject
class TestQgsComposerTable : public QObject
{
Q_OBJECT
private slots:

View File

@ -34,7 +34,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposerTableV2: public QObject
class TestQgsComposerTableV2 : public QObject
{
Q_OBJECT
private slots:

View File

@ -25,7 +25,7 @@
#include <QtTest/QtTest>
#include <QMap>
class TestQgsComposerUtils: public QObject
class TestQgsComposerUtils : public QObject
{
Q_OBJECT
private slots:

View File

@ -27,7 +27,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestQgsComposition: public QObject
class TestQgsComposition : public QObject
{
Q_OBJECT

View File

@ -27,7 +27,7 @@
/** \ingroup UnitTests
* This is a unit test for the QgsDataItem class.
*/
class TestQgsDataItem: public QObject
class TestQgsDataItem : public QObject
{
Q_OBJECT

View File

@ -47,7 +47,7 @@
/** \ingroup UnitTests
* This is a unit test for the vector layer class.
*/
class TestQgsDiagram: public QObject
class TestQgsDiagram : public QObject
{
Q_OBJECT
private:

View File

@ -47,7 +47,7 @@
/** \ingroup UnitTests
* This is a unit test for the vector layer class.
*/
class TestQgsDiagramExpression: public QObject
class TestQgsDiagramExpression : public QObject
{
Q_OBJECT
private:

View File

@ -470,8 +470,8 @@ class TestQgsExpression: public QObject
void eval_precedence()
{
QCOMPARE(QgsExpression::BinaryOperatorText[QgsExpression::boDiv],"/");
QCOMPARE(QgsExpression::BinaryOperatorText[QgsExpression::boConcat],"||");
QCOMPARE( QgsExpression::BinaryOperatorText[QgsExpression::boDiv], "/" );
QCOMPARE( QgsExpression::BinaryOperatorText[QgsExpression::boConcat], "||" );
QgsExpression e0( "1+2*3" );
QCOMPARE( e0.evaluate().toInt(), 7 );

View File

@ -38,7 +38,7 @@
/** \ingroup UnitTests
* This is a unit test for the different geometry operations on vector features.
*/
class TestQgsGeometry: public QObject
class TestQgsGeometry : public QObject
{
Q_OBJECT
private slots:

View File

@ -40,7 +40,7 @@
/** \ingroup UnitTests
* This is a unit test for gradient fill types.
*/
class TestQgsGradients: public QObject
class TestQgsGradients : public QObject
{
Q_OBJECT
private slots:

View File

@ -36,7 +36,7 @@
/** \ingroup UnitTests
* This is a unit test for the different renderers for vector layers.
*/
class TestQgsInvertedPolygon: public QObject
class TestQgsInvertedPolygon : public QObject
{
Q_OBJECT
private slots:

View File

@ -45,7 +45,7 @@ class TestSignalReceiver : public QObject
/** \ingroup UnitTests
* This is a unit test for the QgsMapLayer class.
*/
class TestQgsMapLayer: public QObject
class TestQgsMapLayer : public QObject
{
Q_OBJECT
private slots:

View File

@ -49,7 +49,7 @@
* It will do some performance testing too
*
*/
class TestQgsMapRenderer: public QObject
class TestQgsMapRenderer : public QObject
{
Q_OBJECT
private slots:

View File

@ -32,75 +32,75 @@ class TestQgsMapToPixel: public QObject
void TestQgsMapToPixel::legacy()
{
QgsMapToPixel m2p(2,10,-4,3);
QgsMapToPixel m2p( 2, 10, -4, 3 );
QgsPoint p(0,0); // in geographical units
QgsPoint d = m2p.transform(p); // to device pixels
QgsPoint p( 0, 0 ); // in geographical units
QgsPoint d = m2p.transform( p ); // to device pixels
QCOMPARE( d.x(), -1.5 );
QCOMPARE( d.y(), 8.0 );
QgsPoint b = m2p.toMapCoordinatesF( d.x(), d.y() ); // transform back
QCOMPARE( p, b );
m2p.transform(&p); // in place transform
m2p.transform( &p ); // in place transform
QCOMPARE( p, d );
m2p.setParameters(0.2, -10, 7, 20);
m2p.setParameters( 0.2, -10, 7, 20 );
p = m2p.toMapCoordinates( -1, -1 );
QCOMPARE( p.x(), -10.2 );
QCOMPARE( p.y(), 11.2 );
d = m2p.transform(p);
QCOMPARE( d, QgsPoint(-1, -1) );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( -1, -1 ) );
p = m2p.toMapCoordinates( 20, 20 );
QCOMPARE( p.x(), -6.0 );
QCOMPARE( p.y(), 7.0 );
d = m2p.transform(p);
QCOMPARE( d, QgsPoint(20, 20) );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( 20, 20 ) );
}
void TestQgsMapToPixel::rotation()
{
QgsMapToPixel m2p(1,5,5,10,10,90);
QgsMapToPixel m2p( 1, 5, 5, 10, 10, 90 );
QgsPoint p(5,5); // in geographical units
QgsPoint d = m2p.transform(p); // to device pixels
QgsPoint p( 5, 5 ); // in geographical units
QgsPoint d = m2p.transform( p ); // to device pixels
QCOMPARE( d.x(), 5.0 ); // center doesn't move
QCOMPARE( d.y(), 5.0 );
QgsPoint b = m2p.toMapCoordinatesF( d.x(), d.y() ); // transform back
QCOMPARE( p, b );
m2p.transform(&p); // in place transform
m2p.transform( &p ); // in place transform
QCOMPARE( p, d );
m2p.setParameters(0.1,5,5,10,10,-90);
m2p.setParameters( 0.1, 5, 5, 10, 10, -90 );
p = m2p.toMapCoordinates( 5, 5 );
QCOMPARE( p.x(), 5.0 ); // center doesn't move
QCOMPARE( p.y(), 5.0 );
d = m2p.transform(p);
QCOMPARE( d, QgsPoint(5, 5) );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( 5, 5 ) );
p = m2p.toMapCoordinates( 10, 0 );
QCOMPARE( p.x(), 5.5 ); // corner scales and rotates
QCOMPARE( p.y(), 4.5 );
d = m2p.transform(p);
QCOMPARE( d, QgsPoint(10, 0) );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( 10, 0 ) );
m2p.setParameters(0.1,5,5,10,10,360);
m2p.setParameters( 0.1, 5, 5, 10, 10, 360 );
p = m2p.toMapCoordinates( 10, 0 );
QCOMPARE( p.x(), 5.5 ); // corner scales
QCOMPARE( p.y(), 5.5 );
d = m2p.transform(p);
QCOMPARE( d, QgsPoint(10, 0) );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( 10, 0 ) );
m2p.setParameters(0.1,5,5,10,10,0);
m2p.setParameters( 0.1, 5, 5, 10, 10, 0 );
p = m2p.toMapCoordinates( 10, 0 );
QCOMPARE( p.x(), 5.5 ); // corner scales
QCOMPARE( p.y(), 5.5 );
d = m2p.transform(p);
QCOMPARE( d, QgsPoint(10, 0) );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( 10, 0 ) );
}

View File

@ -21,7 +21,7 @@
#include <QtTest/QtTest>
#include <QNetworkReply>
class TestQgsNetworkContentFetcher: public QObject
class TestQgsNetworkContentFetcher : public QObject
{
Q_OBJECT
private slots:

View File

@ -39,7 +39,7 @@
/** \ingroup UnitTests
* This is a unit test for raster fill types.
*/
class TestQgsRasterFill: public QObject
class TestQgsRasterFill : public QObject
{
Q_OBJECT
private slots:

View File

@ -48,7 +48,7 @@
/** \ingroup UnitTests
* This is a unit test for the QgsRasterLayer class.
*/
class TestQgsRasterLayer: public QObject
class TestQgsRasterLayer : public QObject
{
Q_OBJECT
private slots:

View File

@ -48,7 +48,7 @@
/** \ingroup UnitTests
* This is a unit test for raster sublayers
*/
class TestQgsRasterSubLayer: public QObject
class TestQgsRasterSubLayer : public QObject
{
Q_OBJECT
private slots:

View File

@ -36,7 +36,7 @@
/** \ingroup UnitTests
* This is a unit test for the different renderers for vector layers.
*/
class TestQgsRenderers: public QObject
class TestQgsRenderers : public QObject
{
Q_OBJECT
private slots:

View File

@ -40,7 +40,7 @@
/** \ingroup UnitTests
* This is a unit test for shapeburst fill types.
*/
class TestQgsShapeburst: public QObject
class TestQgsShapeburst : public QObject
{
Q_OBJECT
private slots:

View File

@ -31,7 +31,7 @@
/** \ingroup UnitTests
* This is a unit test to verify that styles are working correctly
*/
class TestStyleV2: public QObject
class TestStyleV2 : public QObject
{
Q_OBJECT

View File

@ -67,7 +67,7 @@ class TestSignalReceiver : public QObject
/** \ingroup UnitTests
* This is a unit test for the vector layer class.
*/
class TestQgsVectorLayer: public QObject
class TestQgsVectorLayer : public QObject
{
Q_OBJECT
private:

View File

@ -31,7 +31,7 @@
*
* @see QgsVectorLayerCache
*/
class TestVectorLayerCache: public QObject
class TestVectorLayerCache : public QObject
{
Q_OBJECT

View File

@ -29,7 +29,7 @@
*
* @see QgsVectorLayerJoinBuffer
*/
class TestVectorLayerJoinBuffer: public QObject
class TestVectorLayerJoinBuffer : public QObject
{
Q_OBJECT

View File

@ -153,10 +153,10 @@ bool TestZipLayer::testZipItem( QString myFileName, QString myChildName, QString
time.start();
while ( myZipItem->state() != QgsDataItem::Populated && time.elapsed() < 5000 )
{
QTest::qSleep ( 100 );
QTest::qSleep( 100 );
QCoreApplication::processEvents();
}
QgsDebugMsg( QString( "time.elapsed() = %1 ms" ).arg ( time.elapsed() ) );
QgsDebugMsg( QString( "time.elapsed() = %1 ms" ).arg( time.elapsed() ) );
bool ok = false;
QString driverName;
QVector<QgsDataItem*> myChildren = myZipItem->children();

View File

@ -24,7 +24,7 @@
#include <QObject>
#include <QtTest/QtTest>
class TestProjectionIssues: public QObject
class TestProjectionIssues : public QObject
{
Q_OBJECT
private slots:

View File

@ -24,7 +24,7 @@
#include <qgsmapcanvas.h>
#include <qgsfeature.h>
class TestQgsDualView: public QObject
class TestQgsDualView : public QObject
{
Q_OBJECT
private slots:

View File

@ -25,7 +25,7 @@
#include <qgsmapcanvas.h>
#include <qgslogger.h>
class TestQgsMapToolZoom: public QObject
class TestQgsMapToolZoom : public QObject
{
Q_OBJECT
private slots:

View File

@ -36,7 +36,7 @@
/** \ingroup UnitTests
* This is a unit test for the different renderers for vector layers.
*/
class TestQgsQuickPrint: public QObject
class TestQgsQuickPrint : public QObject
{
Q_OBJECT
private slots: