From 2ef2532bf688387e91810bbd47f7438e78d3b49d Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Fri, 11 May 2012 10:20:42 +0200 Subject: [PATCH] Update coding style Since Qt modules are changing between Qt4 and Qt5 we no longer include them when including Qt headers. Change-Id: I3ed8649faa20b7f7bcd4180c79219f24fdbba026 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@nokia.com> Reviewed-by: hjk <qthjk@ovi.com> --- doc/api/coding-style.qdoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/coding-style.qdoc b/doc/api/coding-style.qdoc index 5d308131d0d..b6c5f76dae3 100644 --- a/doc/api/coding-style.qdoc +++ b/doc/api/coding-style.qdoc @@ -658,14 +658,15 @@ \list \o Use the following format to include Qt headers: - \c{#include <QtCore/QWhatEver>}. + \c{#include <QWhatEver>}. Do not include the module as it might have changed between + Qt4 and Qt5. \o Arrange includes in an order that goes from specific to generic to ensure that the headers are self-contained. For example: \list \o \c{#include "myclass.h"} \o \c{#include "otherclassinplugin.h"} \o \c{#include <otherplugin/someclass.h>} - \o \c{#include <QtModule/QtClass>} + \o \c{#include <QtClass>} \o \c{#include <stdthing>} \o \c{#include <system.h>} \endlist -- GitLab