summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@nokia.com>2010-08-12 07:10:59 (GMT)
committerMartin Smith <martin.smith@nokia.com>2010-08-12 07:10:59 (GMT)
commit81529d52a76b48aa89b7ac8c9044da4ea5c11f3f (patch)
tree15804758bc6d213044fcacd8d00c88d8321ed1c9 /doc
parent03d9d3cf641c8dde22a903870ac2b6e58ada6eec (diff)
parent773512d205df2ba7caa28b7b5cdbfbd6787a0967 (diff)
downloadQt-81529d52a76b48aa89b7ac8c9044da4ea5c11f3f.zip
Qt-81529d52a76b48aa89b7ac8c9044da4ea5c11f3f.tar.gz
Qt-81529d52a76b48aa89b7ac8c9044da4ea5c11f3f.tar.bz2
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'doc')
-rw-r--r--doc/src/declarative/declarativeui.qdoc2
-rw-r--r--doc/src/declarative/qtdeclarative.qdoc2
-rw-r--r--doc/src/deployment/deployment.qdoc27
-rw-r--r--doc/src/examples/simpletreemodel.qdoc4
-rw-r--r--doc/src/examples/spinboxdelegate.qdoc5
-rw-r--r--doc/src/external-resources.qdoc12
-rw-r--r--doc/src/frameworks-technologies/gestures.qdoc49
-rw-r--r--doc/src/index.qdoc12
-rw-r--r--doc/src/modules.qdoc1
-rw-r--r--doc/src/overviews.qdoc3
-rw-r--r--doc/src/platforms/symbian-introduction.qdoc76
-rw-r--r--doc/src/qt-webpages.qdoc5
-rw-r--r--doc/src/widgets-and-layouts/stylesheet.qdoc4
13 files changed, 146 insertions, 56 deletions
diff --git a/doc/src/declarative/declarativeui.qdoc b/doc/src/declarative/declarativeui.qdoc
index b25d000..ce35f26 100644
--- a/doc/src/declarative/declarativeui.qdoc
+++ b/doc/src/declarative/declarativeui.qdoc
@@ -27,7 +27,7 @@
/*!
\title Qt Quick
-\page declarativeui.html
+\page qtquick.html
\brief Qt Quick provides a declarative framework for building highly
dynamic, custom user interfaces.
diff --git a/doc/src/declarative/qtdeclarative.qdoc b/doc/src/declarative/qtdeclarative.qdoc
index 413eb59..b4f4c83 100644
--- a/doc/src/declarative/qtdeclarative.qdoc
+++ b/doc/src/declarative/qtdeclarative.qdoc
@@ -48,7 +48,7 @@
\endcode
For more information on the Qt Declarative module, see the
- \l{declarativeui.html}{Qt Quick} documentation.
+ \l{Qt Quick} documentation.
*/
diff --git a/doc/src/deployment/deployment.qdoc b/doc/src/deployment/deployment.qdoc
index 020ca16..00771ed 100644
--- a/doc/src/deployment/deployment.qdoc
+++ b/doc/src/deployment/deployment.qdoc
@@ -1458,8 +1458,10 @@
/*!
\page deployment-symbian.html
\contentspage Deploying Qt Applications
+ \ingroup qtsymbian
+ \title Deploying an Application on the Symbian Platform
- \title Deploying an Application on the Symbian platform
+ \section1 Overview
Applications are deployed to Symbian devices in signed \c .sis package files.
The \c .sis file content is controlled with \c .pkg files. The \c .pkg file contains a set
@@ -1469,10 +1471,17 @@
to end-users some changes are needed. This document describes what changes are
typically needed and how to implement them.
+ \section1 Requirements
+
+ Download the latest release of the Smart Installer from
+ \l{http://get.qt.nokia.com/nokiasmartinstaller/}, and install it on top
+ of the Qt package.
+
\section1 Static Linking
- Qt for the Symbian platform does currently not support static linking of
- Qt libraries.
+ Qt for the Symbian platform does not currently support static linking of
+ Qt libraries with application binaries. You will need to build shared
+ libraries as described below and link your application with them.
\section1 Shared Libraries
@@ -1518,7 +1527,7 @@
S60 3rd edition FP1, S60 3rd edition FP2 and S60 5th edition devices.
Now we are ready to compile the application and create the application
- deployment file. Run \c qmake to create Symbian specific makefiles, resources (\.rss)
+ deployment file. Run \c qmake to create Symbian specific makefiles, resources (\c .rss)
and deployment packaging files (\c .pkg). And do build to create the
application binaries and resources.
@@ -1548,4 +1557,14 @@
For more information about creating a \c .sis file and installing it to device see also
\l {The Symbian platform - Introduction to Qt#Installing your own applications}{here}.
+ \section1 Further Reading
+
+ This document aims to cover the common case for developers who want to
+ deploy Qt applications on devices using the Smart Installer. It does not
+ aim to cover every possible way of installing applications, Qt and other
+ dependencies on a device.
+
+ A wider selection of deployment methods is described in the
+ \l{Deploying a Qt Application article} on the Symbian Foundation
+ Developer Wiki.
*/
diff --git a/doc/src/examples/simpletreemodel.qdoc b/doc/src/examples/simpletreemodel.qdoc
index 16cf8b7..88aa27a 100644
--- a/doc/src/examples/simpletreemodel.qdoc
+++ b/doc/src/examples/simpletreemodel.qdoc
@@ -32,7 +32,7 @@
The Simple Tree Model example shows how to create a basic, read-only
hierarchical model to use with Qt's standard view classes. For a
description of simple non-hierarchical list and table models, see the
- \l{model-view-programming.html}{Model/View Programming} overview.
+ \l{Model/View Programming} overview.
\image simpletreemodel-example.png
@@ -41,7 +41,7 @@
of the data to simplify and standardize the way it is accessed.
Simple models represent data as a table of items, and allow views
to access this data via an
- \l{model-view-programming.html#model-indexes} {index-based}
+ \l{Model/View Programming#model-indexes} {index-based}
system. More generally, models can be used to represent data in
the form of a tree structure by allowing each item to act as a
parent to a table of child items.
diff --git a/doc/src/examples/spinboxdelegate.qdoc b/doc/src/examples/spinboxdelegate.qdoc
index da65831..44308ca 100644
--- a/doc/src/examples/spinboxdelegate.qdoc
+++ b/doc/src/examples/spinboxdelegate.qdoc
@@ -42,9 +42,8 @@
\image spinboxdelegate-example.png
This concepts behind this example are covered in the
- \l{model-view-programming.html#delegate-classes}{Delegate Classes}
- chapter of the \l{model-view-programming.html}{Model/View
- Programming} overview.
+ \l{Model/View Programming#Delegate Classes}{Delegate Classes} chapter
+ of the \l{Model/View Programming} overview.
\section1 SpinBoxDelegate Class Definition
diff --git a/doc/src/external-resources.qdoc b/doc/src/external-resources.qdoc
index 61c9da2..e901124c 100644
--- a/doc/src/external-resources.qdoc
+++ b/doc/src/external-resources.qdoc
@@ -416,5 +416,15 @@
/*!
\externalpage http://opensource.org/licenses/bsd-license.php
- \title BSD License
+ \title New and Modified BSD Licenses
+*/
+
+/*!
+ \externalpage http://developer.symbian.org/wiki/index.php/Platform_Security_%28Fundamentals_of_Symbian_C%2B%2B%29#Self-Signed_Applications
+ \title Symbian Platform Security
+*/
+
+/*!
+ \externalpage http://developer.symbian.org/wiki/index.php/Deploying_a_Qt_Application
+ \title Deploying a Qt Application article
*/
diff --git a/doc/src/frameworks-technologies/gestures.qdoc b/doc/src/frameworks-technologies/gestures.qdoc
index 927df22..f7c8312 100644
--- a/doc/src/frameworks-technologies/gestures.qdoc
+++ b/doc/src/frameworks-technologies/gestures.qdoc
@@ -60,7 +60,8 @@
\section1 Using Standard Gestures with Widgets
Gestures can be enabled for instances of QWidget and QGraphicsObject subclasses.
- An object that accepts gesture input is referred to as a \e{target object}.
+ An object that accepts gesture input is referred to throughout the documentation
+ as a \e{target object}.
To enable a gesture for a target object, call its QWidget::grabGesture() or
QGraphicsObject::grabGesture() function with an argument describing the
@@ -69,13 +70,57 @@
\snippet examples/gestures/imagegestures/imagewidget.cpp enable gestures
- In the above code, the gesture is set up in the constructor of the target object
+ In the above code, the gestures are set up in the constructor of the target object
itself.
+ \section1 Handling Events
+
When the user performs a gesture, QGestureEvent events will be delivered to the
target object, and these can be handled by reimplementing the QWidget::event()
handler function for widgets or QGraphicsItem::sceneEvent() for graphics objects.
+ As one target object can subscribe to more than one gesture type, the QGestureEvent
+ can contain more than one QGesture, indicating several possible gestures are active
+ at the same time. It is then up to the widget to determine how to handle those
+ multiple gestures and choose if some should be canceled in favor of others.
+
+ Each QGesture contained within a QGestureEvent object can be accepted() or ignored()
+ individually, or all together. Additionally, you can query the individual QGesture
+ data objects (the state) using several getters.
+
+ \section2 Standard Procedure for Event Handling
+
+ A QGesture is by default accepted when it arrives at your widget. However, it is good
+ practice to always explicitly accept or reject a gesture. The general rule is that, if
+ you accept a gesture, you are using it. If you are ignoring it you are not interested
+ in it. Ignoring a gesture may mean it gets offered to another target object, or it will
+ get canceled.
+
+ Each QGesture has several states it goes through; there is a well defined way to change
+ the state, typically the user input is the cause of state changes (by starting and
+ stopping interaction, for instance) but the widget can also cause state changes.
+
+ The first time a particular QGesture is delivered to a widget or graphics item, it will
+ be in the Qt::GestureStarted state. The way you handle the gesture at this point
+ influences whether you can interact with it later.
+
+ \list
+ \o Accepting the gesture means the widget acts on the gesture and there will follow
+ gestures with the Qt::GestureUpdatedstate.
+ \o Ignoring the gesture will mean the gesture will never be offered to you again.
+ It will be offered to a parent widget or item as well.
+ \o Calling setGestureCancelPolicy() on the gesture when it is in its starting state,
+ and is also accepted can cause other gestures to be canceled.
+ \endlist
+
+ Using QGesture::CancelAllInContext to cancel a gesture will cause all gestures, in any
+ state, to be canceled unless they are explicitly accepted. This means that active
+ gestures on children will get canceled. It also means that gestures delivered in the
+ same QGestureEvent will get canceled if the widget ignores them. This can be a useful
+ way to filter out all gestures except the one you are interested in.
+
+ \section2 Example Event Handling
+
For convenience, the \l{Image Gestures Example} reimplements the general
\l{QWidget::}{event()} handler function and delegates gesture events to a
specialized gestureEvent() function:
diff --git a/doc/src/index.qdoc b/doc/src/index.qdoc
index 0609eb8..38586ef 100644
--- a/doc/src/index.qdoc
+++ b/doc/src/index.qdoc
@@ -65,18 +65,19 @@
</div>
<div class="sectionlist tricol">
<ul>
- <li><a href="qt-basic-concepts.html">Basic Concepts</a></li>
+ <li><a href="qt-basic-concepts.html">Basic Qt Architecture</a></li>
<li><a href="qt-gui-concepts.html">UI Components</a></li>
- <li><a href="developing-with-qt.html">Cross-platform &amp; Platform-specific</a></li>
- <li><a href="technology-apis.html">Qt API's for standard technologies </a></li>
+ <li><a href="developing-with-qt.html">Cross-platform &amp; Platform-specific Development</a></li>
+ <li><a href="technology-apis.html">Qt &amp; standard technologies </a></li>
<li><a href="best-practices.html">Qt How-to's &amp; best practices</a></li>
</ul>
</div>
<div class="sectionlist">
<ul>
- <li><a href="declarativeui.html">Qt Quick</a></li>
+ <li><a href="qtquick.html">Qt Quick</a></li>
<li><a href="qdeclarativeintroduction.html">Introduction to QML</a></li>
<li><a href="qdeclarativeelements.html">QML Elements</a></li>
+ <li><a href="qt-gui-concepts.html">UI components</a></li>
<li><a href="model-view-programming.html">Model/View Programming</a></li>
<li><a href="qt-network.html">Network Programming</a></li>
<li><a href="qt-graphics.html">Graphics and Printing</a></li>
@@ -101,8 +102,7 @@
<li><a href="assistant-manual.html">Qt Assistant</a></li>
<li><a href="qmake-manual.html">Qt qmake</a></li>
<li><a href="http://doc.qt.nokia.com/qtsimulator-1.0/simulator-description.html">Qt Simulator</a></li>
- <li><a href="http://qt.nokia.com/developer/eclipse-integration">Eclipse Integration</a></li>
- <li><a href="http://qt.nokia.com/products/appdev">Add-On Products and Services</a></li>
+ <li><a href="http://qt.nokia.com/developer/eclipse-integration">Integration</a> and <a href="http://qt.nokia.com/products/appdev">add-ins</a></li>
<li><a href="qvfb.html">Virtual Framebuffer</a></li>
</ul>
</div>
diff --git a/doc/src/modules.qdoc b/doc/src/modules.qdoc
index 941459b..8912490 100644
--- a/doc/src/modules.qdoc
+++ b/doc/src/modules.qdoc
@@ -110,7 +110,6 @@
/*!
\module QtMultimedia
- \page qtmultimedia-module.html
\title QtMultimedia Module
\ingroup modules
diff --git a/doc/src/overviews.qdoc b/doc/src/overviews.qdoc
index caf9404..1c35a63 100644
--- a/doc/src/overviews.qdoc
+++ b/doc/src/overviews.qdoc
@@ -55,8 +55,7 @@
These pages are about Qt's traditional set of GUI components for
building both native look ^ feel and custom UI's for the desktop
- environment. Use \l {declarativeui.html} {Qt Quick} for building
- UI's for mobile devices.
+ environment. Use \l{Qt Quick} for building UI's for mobile devices.
\generatelist {related}
*/
diff --git a/doc/src/platforms/symbian-introduction.qdoc b/doc/src/platforms/symbian-introduction.qdoc
index afb17c4..701707e 100644
--- a/doc/src/platforms/symbian-introduction.qdoc
+++ b/doc/src/platforms/symbian-introduction.qdoc
@@ -86,12 +86,12 @@
\tableofcontents
- \section1 Required tools
+ \section1 Required Tools
See \l{Qt for the Symbian platform Requirements} to see what tools are
required to use Qt for the Symbian platform.
- \section1 Installing Qt and running demos
+ \section1 Installing Qt and Running Demos
Follow the instructions found in \l{Installing Qt on the Symbian platform from a Binary Package}
to learn how to install Qt using a binary package and how to build and run Qt demos.
@@ -99,7 +99,7 @@
Follow the instructions found in \l{Installing Qt on the Symbian platform} to learn how to install Qt using
using source package and how to build and run the Qt demos.
- \section1 Building your own applications
+ \section1 Building Your Own Applications
If you are new to Qt development, have a look at \l{How to Learn Qt}.
In general, the difference between developing a
@@ -112,12 +112,19 @@
\snippet doc/src/snippets/code/doc_src_symbian-introduction.qdoc 0
For more information on how to use qmake have a look at the \l
- {qmake Tutorial}.
+ {qmake Tutorial}. In particular, see the
+ \l{qmake Platform Notes#Symbian platform}{qmake Platform Notes} for
+ details of Symbian-specific build settings.
Now you can build the Qt for the Symbian platform application with
- standard build tools. By default, running \c make will produce binaries for
- the emulator. However, the Symbian platform comes with several alternative
- build targets, as shown in the table below:
+ standard build tools.
+
+ \section2 Alternative Build Targets
+
+ By default, running \c make will produce binaries for the emulator.
+ However, the Symbian platform comes with several alternative
+ build targets that can be used to create binaries for target hardware
+ and deploy them on devices, as shown in the table below:
\table
\row \o \c debug-winscw \o Build debug binaries for the emulator (default).
@@ -149,19 +156,30 @@
To work on your project in Carbide, simply import the \c .pro file
by right clicking on the project explorer and executing "Import...".
- \section2 Smart Installer
+ \section1 Running Applications from the Command Line
- The Smart Installer makes sure that deployed applications have all the Qt dependencies
- they need to run on a device.
+ The application can be launched on the emulator using \c{make run} command.
- Download the latest release of the Smart Installer from \l{http://get.qt.nokia.com/nokiasmartinstaller/},
- and install it on top of the Qt package.
+ The application can be launched on a device using \c{make runonphone} command.
+ When this command is invoked, a \c .sis file is first created as if \c{make sis}
+ command was invoked (see above for details).
+ \bold{Note:} Running the application on a device using this command requires
+ \c TRK application to be running on the device.
- \section1 Installing your own applications
+ Additional environment variables that can be utilized with these commands are:
+ \table
+ \row \o \c QT_RUN_OPTIONS \o Any command line parameters you wish to pass
+ to your application.
+ \row \o \c QT_RUN_ON_PHONE_OPTIONS \o Options for runonphone application.
+ Execute \c runonphone from command line for
+ more information about available options.
+ \c{make runonphone} only.
+ \endtable
+
+ \section1 Installing Your Own Applications
To install your own applications on hardware, you need a signed \c .sis file.
- (Refer to the \l{http://developer.symbian.org/wiki/index.php/Platform_Security_%28Fundamentals_of_Symbian_C%2B%2B%29#Self-Signed_Applications}
- {Platform Security Article} for more informations about self-signing.)
+ (Refer to the \l{Symbian Platform Security} article for more informations about self-signing.)
The signed \c .sis file can be created with \c make \c sis target. \c sis target
is only supported for executables or projects with \c DEPLOYMENT statements.
By default the \c sis target will create signed \c .sis file for last build
@@ -220,23 +238,19 @@
\snippet doc/src/snippets/code/doc_src_symbian-introduction.qdoc 5
- \section1 Running applications from command line
+ \section1 Deployment and the Smart Installer
- The application can be launched on the emulator using \c{make run} command.
+ Although some Symbian devices may already have a version of Qt installed
+ on them, there needs to be a way to ensure that an appropriate version
+ of Qt is available for your application to use. Rather than deploy the
+ required Qt libraries with your application, the preferred way to
+ package Qt applications for deployment is to download and use the Smart
+ Installer.
- The application can be launched on a device using \c{make runonphone} command.
- When this command is invoked, a \c .sis file is first created as if \c{make sis}
- command was invoked (see above for details).
- \bold{Note:} Running the application on a device using this command requires
- \c TRK application to be running on the device.
+ The Smart Installer makes sure that deployed applications have all the
+ Qt dependencies they need to run on a device, performing the necessary
+ updates when the user installs the application.
- Additional environment variables that can be utilized with these commands are:
- \table
- \row \o \c QT_RUN_OPTIONS \o Any command line parameters you wish to pass
- to your application.
- \row \o \c QT_RUN_ON_PHONE_OPTIONS \o Options for runonphone application.
- Execute \c runonphone from command line for
- more information about available options.
- \c{make runonphone} only.
- \endtable
+ More information about deployment can be found in the
+ \l{Deploying an Application on the Symbian Platform} document.
*/
diff --git a/doc/src/qt-webpages.qdoc b/doc/src/qt-webpages.qdoc
index 0c61285..5d9b41b 100644
--- a/doc/src/qt-webpages.qdoc
+++ b/doc/src/qt-webpages.qdoc
@@ -234,3 +234,8 @@
\externalpage http://qt.gitorious.org
\title Public Qt Repository
*/
+
+/*!
+ \externalpage http://get.qt.nokia.com/nokiasmartinstaller/
+ \title Smart Installer
+*/
diff --git a/doc/src/widgets-and-layouts/stylesheet.qdoc b/doc/src/widgets-and-layouts/stylesheet.qdoc
index 475de3d..5c72570 100644
--- a/doc/src/widgets-and-layouts/stylesheet.qdoc
+++ b/doc/src/widgets-and-layouts/stylesheet.qdoc
@@ -925,7 +925,7 @@
The scroller is styled using the \l{#scroller-sub}{::scroller}.
- The tear-off is styled using the \l{#tear-off-sub}{::tear-off}.
+ The tear-off is styled using the \l{#tearoff-sub}{::tearoff}.
See \l{Qt Style Sheets Examples#Customizing QMenu}{Customizing QMenu}
for an example.
@@ -3337,7 +3337,7 @@
\o The tear indicator of a QTabBar.
\row
- \o \c ::tear-off \target tear-off-sub
+ \o \c ::tearoff \target tearoff-sub
\o The tear-off indicator of a QMenu.
\row