Skip to content
Snippets Groups Projects
Commit 2ef2532b authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk
Browse files

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: default avatarLeena Miettinen <riitta-leena.miettinen@nokia.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 2359fe36
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment