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

« back to all changes in this revision

Viewing changes to tests/unit/deprecated_theme_engine/tst_deprecated_theme_engine.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 <QtCore/QString>
19
 
#include <QtTest/QtTest>
20
18
#include <QtQml/QQmlEngine>
21
19
#include <QtQml/QQmlContext>
22
20
#include <QtQml/QQmlComponent>
 
21
#include <QtQuick/private/qquicktext_p.h>
 
22
#include <QtTest/QtTest>
 
23
#include <UbuntuToolkit/ubuntutoolkitmodule.h>
23
24
#include <UbuntuToolkit/private/ucdeprecatedtheme_p.h>
24
25
#include <UbuntuToolkit/private/uctheme_p.h>
 
26
 
25
27
#include "uctestcase.h"
26
 
#include <private/qquicktext_p.h>
27
 
#include <ubuntutoolkitmodule.h>
28
28
 
29
29
UT_USE_NAMESPACE
30
30