Simulate Qt5 QTemporaryDir

Qt4 doesn't have an QTemporaryDir, so we must simulate it.

Change-Id: Ief45836d1ae63f7979d76b6b887be961ba7aca38
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Simulate QFINDTESTDATA functionality

Change-Id: Ia80700d5df7bbfab94f25333cb88662836676124
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Adapt to Qt4 QSKIP

From the C++ API changes at
http://qt-project.org/doc/qt-5.0/qtdoc/sourcebreaks.html#changes-to-qt-test

"The "mode" parameter in QSKIP macro is removed. This parameter caused
problems in test metrics calculation because of the SkipAll mode, which
hid information about the skipped test data. Calling QSKIP in a test
function now behaves like SkipSingle, which is skipping a non-data-driven
test function or skipping only the current data row of a data-driven test
function. Every skipped data row is now reported in the test log."

Change-Id: I6d07fb13f5949dda52a89438d84c86dcc54f8c6c
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Backport QTEST_GUILESS_MAIN from Qt5

Change-Id: I71f2ab4a204cc07f71a4d91dc78204ef4538e5eb
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Defines Q_CONSTRUCTOR_FUNCTION macro

Help from: http://qt-project.org/wiki/QtResources

Change-Id: Ia26894cb019db15a5a88c43159fb94ad6511a482
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Adds missing test files

Taken from:
http://freedesktop.org/wiki/Software/shared-mime-info

Change-Id: Icdfbc918c1f0f0f6583dee4d1e9935b4014801aa
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Don't use the -Wshadow CXX FLAG

It causes the following error (Qt version 4.8.1 i386-linux-gnu):
/usr/include/qt4/QtCore/qtconcurrentrunbase.h:84:42: error: declaration
of ‘future’ shadows a member of 'this' [-Werror=shadow]

Change-Id: I55fe238155948fbd1289f3c5f02596ac0167c0f5
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Removes Qt5 conditional code

The project is only an Qt4 one. Qt5 already includes this functionality
in QtCore/QMimeType

Change-Id: I15e7d0a0a4d254cd2ffd2ff57f340302534e34e9
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Reworks the detect Qt5 then abort

One check at the source code level is enough.
Added a check in the project file so we can abort earlier.

Change-Id: I37f2562d583c5fb54005e22a2a6894dc9054c8f3
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Removes Qt5 modules from the project files

They don't exist in Qt4.

Change-Id: Idb354fbd38ffe2976159e6a1d1cd9ddf8d2cce11
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>
Fixes development header and lib install directory

PREFIX variable added. Let packagers and users choose the install prefix.

Headers installed to $${INCLUDEDIR}/QtMimeTypes. Installing it to
$${INCLUDEDIR}/qt5/QtMimeTypes makes no sense. This is an Qt4 project.
Libraries installed to $${LIBDIR}.

maemo5 "special" include and lib path dropped. Just use the PREFIX
variable.

Use example:
	qmake PREFIX=/usr/local

Change-Id: I4fc173e7999ea7ffdd4dfe26f8a142a822fa7da9
Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com>
Reviewed-by: David Faure (KDE) <faure@kde.org>