summaryrefslogtreecommitdiffstats
path: root/doc/src/porting.qdoc
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@digia.com>2012-10-04 13:48:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-10-12 15:16:15 +0200
commit9d4d08421acb628e0115b140e54656fc779d13db (patch)
treeeb87c8fbbe0722f70fa536227fa7a311febdea81 /doc/src/porting.qdoc
parent8f624bb5d19edb47fc4803a5eb0d6343de5bbae9 (diff)
Doc: Modularized the Qt Sensor Docs
Change-Id: Ie8636ec443f43b1f238342e0f6f7d321e13dce09 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'doc/src/porting.qdoc')
-rw-r--r--doc/src/porting.qdoc112
1 files changed, 0 insertions, 112 deletions
diff --git a/doc/src/porting.qdoc b/doc/src/porting.qdoc
deleted file mode 100644
index 24e0d7e6..00000000
--- a/doc/src/porting.qdoc
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2012 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.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Digia. For licensing terms and
-** conditions see http://qt.digia.com/licensing. For further information
-** use the contact form at http://qt.digia.com/contact-us.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: http://www.gnu.org/copyleft/fdl.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtsensors-porting.html
- \title Porting Applications from QtMobility Sensors to Qt Sensors
-
- \tableofcontents
-
- \section1 Overview
-
- The initial release of Qt Sensors (5.0) is generally expected to be source
- compatible with QtMobility Sensors 1.2. This document attempts to explain
- where things must be changed in order to port applications to Qt Sensors.
-
- \section1 QML
-
- QtSensors ships with a QML import that is compatible with the QtMobility.sensors import.
- The limitations of the QtMobility.sensors import have been fixed and some new properties
- may exist so apps may need to be updated if they are using custom properties on their
- sensor objects.
-
- See \l {Qt Sensors QML API} for more information.
-
- \section1 C++
-
- \section2 Includes
-
- QtMobility Sensors installed headers into a \c Qt Sensors directory. This is
- also the directory that Qt Sensors uses. It is therefore expected that includes
- that worked with QtMobility Sensors should continue to work.
-
- For example:
- \code
- #include <QAccelerometer>
- #include <qaccelerometer.h>
- #include <QtSensors/QAccelerometer>
- #include <QtSensors/qaccelerometer.h>
- \endcode
-
- \section2 Macros and Namespace
-
- QtMobility Sensors was built in a \c QtMobility namespace. This was enabled by
- the use of various macros. Qt Sensors does not normally build into a namespace
- and the macros from QtMobility no longer exist.
-
- \list
- \li QTM_BEGIN_NAMESPACE
- \li QTM_END_NAMESPACE
- \li QTM_USE_NAMESPACE
- \li QTM_PREPEND_NAMESPACE(x)
- \endlist
-
- Note that Qt can be configured to build into a namespace. If Qt is built in this
- way then Qt Sensors is also built into the nominated namespace. However, as this
- is optional, the macros for this are typically defined to do nothing.
-
- \list
- \li QT_BEGIN_NAMESPACE
- \li QT_END_NAMESPACE
- \li QT_USE_NAMESPACE
- \li QT_PREPEND_NAMESPACE(x)
- \endlist
-
- \section2 qtimestamp
-
- qtimestamp was previously defined as an opaque type equivalent to a quint64. It existed
- as a class due to an implementation detail.
-
- In Qt Sensors, the API uses quint64 instead of qtimestamp. qtimestamp still exists as a
- typedef so that applications that refer to qtimestamp can be compiled.
-
- \section1 Project Files
-
- QtMobility Sensors applications used this in their project files to enable the Sensors API.
-
- \code
- CONFIG += mobility
- MOBILITY += sensors
- \endcode
-
- Applications should remove these lines and instead use this to enable the Qt Sensors API.
-
- \code
- QT += sensors
- \endcode
-*/
-