diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2014-10-24 14:09:41 +0400 |
---|---|---|
committer | Alexander Volkov <a.volkov@rusbitech.ru> | 2014-10-27 09:43:59 +0100 |
commit | 309e82021de1b49753559086592749d9fe02b239 (patch) | |
tree | f78d66911f6ebe69b99a8aaf54147d62ea6acf6c /examples/widgets | |
parent | 631a55ccf48f2a128d03a4d2554a8154dfd2f7ee (diff) |
Doc: Include QtWidgets instead of QtGui
Change-Id: Ib7f3183efd446abb7cc191f33128b4e230ee372c
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/widgets')
-rw-r--r-- | examples/widgets/doc/src/application.qdoc | 6 | ||||
-rw-r--r-- | examples/widgets/doc/src/dockwidgets.qdoc | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/widgets/doc/src/application.qdoc b/examples/widgets/doc/src/application.qdoc index 0d244bce00..e0379e9d75 100644 --- a/examples/widgets/doc/src/application.qdoc +++ b/examples/widgets/doc/src/application.qdoc @@ -75,12 +75,12 @@ \snippet mainwindows/application/mainwindow.cpp 0 - We start by including \c <QtGui>, a header file that contains the - definition of all classes in the Qt Core and Qt GUI + We start by including \c <QtWidgets>, a header file that contains the + definition of all classes in the Qt Core, Qt GUI and Qt Widgets modules. This saves us from the trouble of having to include every class individually. We also include \c mainwindow.h. - You might wonder why we don't include \c <QtGui> in \c + You might wonder why we don't include \c <QtWidgets> in \c mainwindow.h and be done with it. The reason is that including such a large header from another header file can rapidly degrade performances. Here, it wouldn't do any harm, but it's still diff --git a/examples/widgets/doc/src/dockwidgets.qdoc b/examples/widgets/doc/src/dockwidgets.qdoc index 2987ec1211..a11524f4f4 100644 --- a/examples/widgets/doc/src/dockwidgets.qdoc +++ b/examples/widgets/doc/src/dockwidgets.qdoc @@ -55,8 +55,8 @@ \snippet mainwindows/dockwidgets/mainwindow.cpp 0 - We start by including \c <QtGui>, a header file that contains the - definition of all classes in the Qt Core and Qt GUI + We start by including \c <QtWidgets>, a header file that contains the + definition of all classes in the Qt Core, Qt GUI and Qt Widgets modules. This saves us from having to include every class individually and is especially convenient if we add new widgets. We also include \c mainwindow.h. |