diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-06-05 22:26:44 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@digia.com> | 2014-06-05 22:26:44 +0200 |
commit | 0fcce50af009f97efa2a5c5f2c74415c92830962 (patch) | |
tree | f8abf0e4f445fed9480b426b2f856b50911f1210 /examples | |
parent | 74d46a669badc5bf32187686102ca4e644a3c0af (diff) | |
parent | c54f7720d09e7d00f3309736bbeaaa6a81967ec1 (diff) | |
download | qtbase-0fcce50af009f97efa2a5c5f2c74415c92830962.tar.gz qtbase-0fcce50af009f97efa2a5c5f2c74415c92830962.tar.bz2 qtbase-0fcce50af009f97efa2a5c5f2c74415c92830962.zip |
Merge remote-tracking branch 'origin/stable' into dev
Conflicts:
mkspecs/features/qt.prf
src/plugins/platforms/xcb/qxcbwindow.h
src/tools/qdoc/qdocindexfiles.cpp
src/widgets/kernel/qwidget_qpa.cpp
Change-Id: I214f57b03bc2ff86cf3b7dfe2966168af93a5a67
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dbus/doc/images/dbus-chat-example.png | bin | 0 -> 38530 bytes | |||
-rw-r--r-- | examples/dbus/doc/src/chat.qdoc | 12 | ||||
-rw-r--r-- | examples/dbus/doc/src/complexpingpong.qdoc | 14 | ||||
-rw-r--r-- | examples/dbus/doc/src/listnames.qdoc | 10 | ||||
-rw-r--r-- | examples/dbus/doc/src/pingpong.qdoc | 19 | ||||
-rw-r--r-- | examples/dbus/remotecontrolledcar/doc/src/dbus-remotecontrolledcar.qdoc | 10 | ||||
-rw-r--r-- | examples/widgets/mac/mac.pro | 2 | ||||
-rw-r--r-- | examples/widgets/mac/qmaccocoaviewcontainer/main.mm | 2 |
8 files changed, 60 insertions, 9 deletions
diff --git a/examples/dbus/doc/images/dbus-chat-example.png b/examples/dbus/doc/images/dbus-chat-example.png Binary files differnew file mode 100644 index 0000000000..ad66d08950 --- /dev/null +++ b/examples/dbus/doc/images/dbus-chat-example.png diff --git a/examples/dbus/doc/src/chat.qdoc b/examples/dbus/doc/src/chat.qdoc index 45b1260140..daf3eccc9a 100644 --- a/examples/dbus/doc/src/chat.qdoc +++ b/examples/dbus/doc/src/chat.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. @@ -28,4 +28,14 @@ /*! \example chat \title D-Bus Chat Example + \ingroup examples-dbus + \brief Demonstrates communication among instances of an application. + + \e Chat is a \l{Qt D-Bus} example which demonstrates a simple chat system + among instances of an application. Users connect and send message to + each other. + + \image dbus-chat-example.png + + \include examples-run.qdocinc */ diff --git a/examples/dbus/doc/src/complexpingpong.qdoc b/examples/dbus/doc/src/complexpingpong.qdoc index b4cac193fc..ef9df18eab 100644 --- a/examples/dbus/doc/src/complexpingpong.qdoc +++ b/examples/dbus/doc/src/complexpingpong.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. @@ -28,4 +28,16 @@ /*! \example complexpingpong \title D-Bus Complex Ping Pong Example + \ingroup examples-dbus + \brief Demonstrates usage of the Qt D-Bus typesystem. + + \e{Complex Ping Pong Example} demonstrates the use of \l{Qt D-Bus} + typesystem with QDBusVariant and QDBusReply. The example consists of the + main application \c complexping which starts the other application, \c + complexpong. Entering keywords such as \c hello and \c ping is handled by + complexpong and the reply is printed to the standard output. + + \include examples-run.qdocinc + + To run, execute the \c complexping application. */ diff --git a/examples/dbus/doc/src/listnames.qdoc b/examples/dbus/doc/src/listnames.qdoc index 5e17db9674..a0376e10a7 100644 --- a/examples/dbus/doc/src/listnames.qdoc +++ b/examples/dbus/doc/src/listnames.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. @@ -28,4 +28,12 @@ /*! \example listnames \title D-Bus List Names Example + \ingroup examples-dbus + \brief Shows how to access the D-Bus bus daemon service. + + \e{List Names} is a command-line example which shows how to + access the \l{Qt D-Bus} bus daemon service. The example prints various + information about the bus daemon service. + + \include examples-run.qdocinc */ diff --git a/examples/dbus/doc/src/pingpong.qdoc b/examples/dbus/doc/src/pingpong.qdoc index c7dc110077..dcaeb12043 100644 --- a/examples/dbus/doc/src/pingpong.qdoc +++ b/examples/dbus/doc/src/pingpong.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. @@ -28,4 +28,21 @@ /*! \example pingpong \title D-Bus Ping Pong Example + \ingroup examples-dbus + \brief Demonstrates a simple message system using D-Bus. + + \e{Ping Pong} is a command-line example that demonstrates the basics of + \l{Qt D-Bus}. A message is sent to another application and there is a + confirmation of the message. + + \include examples-run.qdocinc + + Run the \c pong application and run the \c ping application with the message + as the argument. + + \badcode + $ ./pong & + $ ./ping Hello + Reply was: ping("Hello") got called + \endcode */ diff --git a/examples/dbus/remotecontrolledcar/doc/src/dbus-remotecontrolledcar.qdoc b/examples/dbus/remotecontrolledcar/doc/src/dbus-remotecontrolledcar.qdoc index 522b0bacc7..a485a99299 100644 --- a/examples/dbus/remotecontrolledcar/doc/src/dbus-remotecontrolledcar.qdoc +++ b/examples/dbus/remotecontrolledcar/doc/src/dbus-remotecontrolledcar.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the documentation of the Qt Toolkit. @@ -28,9 +28,13 @@ /*! \example remotecontrolledcar \title D-Bus Remote Controlled Car Example + \ingroup examples-dbus + \brief Shows how to use Qt D-Bus to control a car from another application. - The Remote Controlled Car example shows how to use D-Bus to control one - application using another. + The Remote Controlled Car example shows how to use \l{Qt D-Bus} to control + one application from another. \image remotecontrolledcar-car-example.png + + \include examples-run.qdocinc */ diff --git a/examples/widgets/mac/mac.pro b/examples/widgets/mac/mac.pro index 1513c66ed8..7f8f79120d 100644 --- a/examples/widgets/mac/mac.pro +++ b/examples/widgets/mac/mac.pro @@ -2,6 +2,6 @@ TEMPLATE = subdirs macx { SUBDIRS = \ - qmacnativewidget \ + qmaccocoaviewcontainer \ qmacnativewidget } diff --git a/examples/widgets/mac/qmaccocoaviewcontainer/main.mm b/examples/widgets/mac/qmaccocoaviewcontainer/main.mm index e8ebc23714..e13273ce31 100644 --- a/examples/widgets/mac/qmaccocoaviewcontainer/main.mm +++ b/examples/widgets/mac/qmaccocoaviewcontainer/main.mm @@ -39,8 +39,8 @@ ** ****************************************************************************/ -#include <QtWidgets> #include <Cocoa/Cocoa.h> +#include <QtWidgets> #include <QMacCocoaViewContainer> class WindowWidget : public QWidget |