~ubuntu-sdk-team/ubuntu-ui-toolkit/staging

« back to all changes in this revision

Viewing changes to tests/unit/swipearea/GestureTest.cpp

  • Committer: Tarmac
  • Author(s): Loïc Molinari
  • Date: 2016-09-12 16:04:18 UTC
  • mfrom: (2090.1.7 uitk-test)
  • Revision ID: tarmac-20160912160418-3murc3kypk2jwamk
Fixed, cleaned up and standardised header inclusions.

Apart from the clean up and the readability improvements, this fixes a bunch of broken private header inclusions (#include "foo_p.h" in private headers instead of "private/foo_p.h" or better <Project/private/foo_p.h>), now all the private headers of the UITK can be included by the users withour compilation issues. It also removes a bunch of direct includes from sources and a few INCLUDEPATHs hacks.

See the CODING file for more details.

Approved by ubuntu-sdk-build-bot, Zsombor Egri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 *
13
13
 * You should have received a copy of the GNU Lesser General Public License
14
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
15
 */
17
16
 
18
17
#include "GestureTest.h"
 
18
 
 
19
#include <QtGui/qpa/qwindowsysteminterface.h>
 
20
#include <QtQml/QQmlEngine>
 
21
#include <QtQuick/QQuickView>
 
22
#include <QtTest/QtTest>
 
23
#include <UbuntuGestures/private/timer_p.h>
 
24
#include <UbuntuGestures/private/touchregistry_p.h>
 
25
 
19
26
#include "uctestcase.h"
20
27
#include "uctestextras.h"
21
28
 
22
 
#include <qpa/qwindowsysteminterface.h>
23
 
#include <QQmlEngine>
24
 
#include <QQuickView>
25
 
#include <QtTest>
26
 
 
27
 
#include <UbuntuGestures/private/timer_p.h>
28
 
#include <UbuntuGestures/private/touchregistry_p.h>
29
 
 
30
29
UG_USE_NAMESPACE
31
30
 
32
31
GestureTest::GestureTest(const QString &qmlFilename)