Skip to content

Commit

Permalink
workaround for moc issue with app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 10, 2018
1 parent 8b606ce commit 3effd9c
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/app/qgisapp.h
Expand Up @@ -121,7 +121,6 @@ class QgsDiagramProperties;
#include "qgswelcomepageitemsmodel.h"
#include "qgsruntimeprofiler.h"


#include "ui_qgisapp.h"

#ifdef HAVE_TOUCH
Expand Down
5 changes: 4 additions & 1 deletion tests/src/app/testqgisappclipboard.cpp
Expand Up @@ -19,7 +19,10 @@
#include <QStringList>
#include <QtTest/QtTest>

#include <qgisapp.h>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif

#include <qgsapplication.h>
#include <qgsfeature.h>
#include <qgsfield.h>
Expand Down
5 changes: 4 additions & 1 deletion tests/src/app/testqgisapppython.cpp
Expand Up @@ -19,7 +19,10 @@
#include <QStringList>
#include <QtTest/QtTest>

#include <qgisapp.h>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif

#include <qgsapplication.h>

/** \ingroup UnitTests
Expand Down
3 changes: 3 additions & 0 deletions tests/src/app/testqgsattributetable.cpp
Expand Up @@ -13,7 +13,9 @@
* *
***************************************************************************/
#include <QtTest/QtTest>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif
#include "qgsapplication.h"
#include "qgsvectorlayer.h"
#include "qgsfeature.h"
Expand All @@ -25,6 +27,7 @@
#include "qgsunittypes.h"
#include "qgsvectorfilewriter.h"


/** \ingroup UnitTests
* This is a unit test for the attribute table dialog
*/
Expand Down
2 changes: 2 additions & 0 deletions tests/src/app/testqgsfieldcalculator.cpp
Expand Up @@ -13,7 +13,9 @@
* *
***************************************************************************/
#include <QtTest/QtTest>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif
#include "qgsapplication.h"
#include "qgsvectorlayer.h"
#include "qgsfeature.h"
Expand Down
4 changes: 3 additions & 1 deletion tests/src/app/testqgsmaptoolidentifyaction.cpp
Expand Up @@ -14,6 +14,8 @@
***************************************************************************/

#include <QtTest/QtTest>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#include "qgsapplication.h"
#include "qgsvectorlayer.h"
#include "qgsrasterlayer.h"
Expand All @@ -24,9 +26,9 @@
#include "qgsmapcanvas.h"
#include "qgsunittypes.h"
#include "qgsmaptoolidentifyaction.h"
#include "qgisapp.h"
#include "qgsidentifymenu.h"
#include "qgsidentifyresultsdialog.h"
#endif

#include "cpl_conv.h"

Expand Down
4 changes: 3 additions & 1 deletion tests/src/app/testqgsmaptoolreshape.cpp
Expand Up @@ -14,14 +14,16 @@ Email : paul.blottiere@oslandia.com
***************************************************************************/

#include <QtTest/QtTest>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif
#include "qgsapplication.h"
#include "qgsmapcanvas.h"
#include "qgsvectorlayer.h"
#include "qgslinestringv2.h"
#include "qgsmaptoolreshape.h"
#include "qgsvectordataprovider.h"
#include "qgsmaplayerregistry.h"
#include "qgisapp.h"

class TestQgsMapToolReshape : public QObject
{
Expand Down
2 changes: 2 additions & 0 deletions tests/src/app/testqgsmeasuretool.cpp
Expand Up @@ -13,7 +13,9 @@
* *
***************************************************************************/
#include <QtTest/QtTest>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif
#include "qgsapplication.h"
#include "qgsvectorlayer.h"
#include "qgsfeature.h"
Expand Down
3 changes: 3 additions & 0 deletions tests/src/app/testqgsvectorlayersaveasdialog.cpp
Expand Up @@ -13,7 +13,9 @@
* *
***************************************************************************/
#include <QtTest/QtTest>
#ifndef Q_MOC_RUN
#include "qgisapp.h"
#endif
#include "qgsapplication.h"
#include "qgsvectorlayer.h"
#include "qgsfeature.h"
Expand All @@ -24,6 +26,7 @@
#include "qgsproject.h"
#include "qgsmapcanvas.h"


/** \ingroup UnitTests
* This is a unit test for the save as dialog
*/
Expand Down

0 comments on commit 3effd9c

Please sign in to comment.