summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/classes/qnamespace.qdoc7
-rw-r--r--doc/src/examples/moveblocks.qdoc6
-rw-r--r--doc/src/porting4.qdoc15
-rw-r--r--doc/src/qmake-manual.qdoc32
-rw-r--r--doc/src/snippets/qmake/spaces.pro9
5 files changed, 62 insertions, 7 deletions
diff --git a/doc/src/classes/qnamespace.qdoc b/doc/src/classes/qnamespace.qdoc
index a49e079..18ecd7b 100644
--- a/doc/src/classes/qnamespace.qdoc
+++ b/doc/src/classes/qnamespace.qdoc
@@ -514,7 +514,6 @@
slots. In particular, it determines whether a particular signal is delivered to a
slot immediately or queued for delivery at a later time.
- \omitvalue AutoCompatConnection
\value DirectConnection When emitted, the signal is immediately delivered to the slot.
\value QueuedConnection When emitted, the signal is queued until the event loop is
able to deliver it to the slot.
@@ -533,6 +532,12 @@
not already connected to the same slot before connecting, otherwise,
the connection will fail.
This value was introduced in Qt 4.6.
+ \value AutoCompatConnection
+ The default connection type for signals and slots when Qt 3 support
+ is enabled. Equivalent to AutoConnection for connections but will cause warnings
+ to be output under certain circumstances. See
+ \l{Porting to Qt 4#Compatibility Signals and Slots}{Compatibility Signals and Slots}
+ for further information.
With queued connections, the parameters must be of types that are known to
Qt's meta-object system, because Qt needs to copy the arguments to store them
diff --git a/doc/src/examples/moveblocks.qdoc b/doc/src/examples/moveblocks.qdoc
index 7e42307..a0049ec 100644
--- a/doc/src/examples/moveblocks.qdoc
+++ b/doc/src/examples/moveblocks.qdoc
@@ -169,7 +169,7 @@
remember which state was the last state to which we transitioned.
\snippet examples/animation/moveblocks/main.cpp 11
-
+
We select the next state we are going to transition to, and post a
\c StateSwitchEvent, which we know will trigger the \c
StateSwitchTransition to the selected state.
@@ -198,8 +198,8 @@
\section1 The StateSwitchEvent Class
\c StateSwitchEvent inherits QEvent, and holds a number that has
- been assigned to a state and state switch transition by \c
- StateSwitcher. We have already seen how it is used to trigger \c
+ been assigned to a state and state switch transition by
+ \c StateSwitcher. We have already seen how it is used to trigger
\c{StateSwitchTransition}s in \c StateSwitcher.
\snippet examples/animation/moveblocks/main.cpp 15
diff --git a/doc/src/porting4.qdoc b/doc/src/porting4.qdoc
index 963b918..286e10d 100644
--- a/doc/src/porting4.qdoc
+++ b/doc/src/porting4.qdoc
@@ -561,6 +561,21 @@
\note Setting widget attributes to disable key features of Qt's widget
rendering model may also cause other features to be disabled.
+ \section1 Compatibility Signals and Slots
+
+ When \c QT3_SUPPORT is defined, the default connection type for signals
+ and slots is the Qt::AutoCompatConnection type. This allows so-called
+ \e compatibility signals and slots (defined in Qt 3 support mode to provide
+ Qt 3 compatibility features) to be connected to other signals and
+ slots.
+
+ However, if Qt is compiled with debugging output enabled, and the
+ developer uses other connection types to connect to compatibility
+ signals and slots (perhaps by building their application without Qt 3
+ support enabled), then Qt will output warnings to the console to
+ indicate that compatibility connections are being made. This is intended
+ to be used as an aid in the process of porting a Qt 3 application to Qt 4.
+
\section1 QAccel
The \c QAccel class has been renamed Q3Accel and moved to the
diff --git a/doc/src/qmake-manual.qdoc b/doc/src/qmake-manual.qdoc
index 211d7e9..1463da7 100644
--- a/doc/src/qmake-manual.qdoc
+++ b/doc/src/qmake-manual.qdoc
@@ -258,14 +258,24 @@
on strings and lists of values. These are described in the chapter on
\l{qmake Advanced Usage}.
+ \section3 Whitespace
+
Normally, variables are used to contain whitespace-separated lists
of values. However, it is sometimes necessary to specify values containing
- spaces. These must be quoted in the following way:
+ spaces. These must be quoted by using the
+ \l{qmake Function Reference#quote-string}{quote()} function in the following way:
\snippet doc/src/snippets/qmake/quoting.pro 0
The quoted text is treated as a single item in the list of values held by
- the variable.
+ the variable. A similar approach is used to deal with paths that contain
+ spaces, particularly when defining the
+ \l{qmake Variable Reference#INCLUDEPATH}{INCLUDEPATH} and
+ \l{qmake Variable Reference#LIBS}{LIBS} variables for the Windows platform.
+ In cases like these, the \l{qmake Function Reference#quote(string)}{quote()}
+ function can be used in the following way:
+
+ \snippet doc/src/snippets/qmake/spaces.pro quoting include paths with spaces
\section2 Comments
@@ -380,7 +390,7 @@
This is ignored if \c warn_off is specified.
\row \o warn_off \o The compiler should output as few warnings as possible.
\row \o copy_dir_files \o Enables the install rule to also copy directories, not just files.
- \endtable
+ \endtable
The \c debug_and_release option is special in that it enables \e both debug and
release versions of a project to be built. In such a case, the Makefile that
@@ -1369,6 +1379,14 @@
\snippet doc/src/snippets/code/doc_src_qmake-manual.qdoc 35
+ To specify a path containing spaces, quote the path using the technique
+ mentioned in the \l{qmake Project Files#Whitespace}{qmake Project Files}
+ document. For example, paths with spaces can be specified on Windows
+ and Unix platforms by using the \l{qmake Function Reference#quote-string}{quote()}
+ function in the following way:
+
+ \snippet doc/src/snippets/qmake/spaces.pro quoting include paths with spaces
+
\target INSTALLS
\section1 INSTALLS
@@ -1422,6 +1440,14 @@
\snippet doc/src/snippets/code/doc_src_qmake-manual.qdoc 38
+ To specify a path containing spaces, quote the path using the technique
+ mentioned in the \l{qmake Project Files#Whitespace}{qmake Project Files}
+ document. For example, paths with spaces can be specified on Windows
+ and Unix platforms by using the \l{qmake Function Reference#quote-string}{quote()}
+ function in the following way:
+
+ \snippet doc/src/snippets/qmake/spaces.pro quoting library paths with spaces
+
\bold{Note:} On Windows, specifying libraries with the \c{-l} option,
as in the above example, will cause the library with the highest version
number to be used; for example, \c{libmath2.lib} could potentially be used
diff --git a/doc/src/snippets/qmake/spaces.pro b/doc/src/snippets/qmake/spaces.pro
new file mode 100644
index 0000000..544ef05
--- /dev/null
+++ b/doc/src/snippets/qmake/spaces.pro
@@ -0,0 +1,9 @@
+#! [quoting library paths with spaces]
+win32:LIBS += $$quote(C:/mylibs/extra libs/extra.lib)
+unix:LIBS += $$quote(-L/home/user/extra libs) -lextra
+#! [quoting library paths with spaces]
+
+#! [quoting include paths with spaces]
+win32:INCLUDEPATH += $$quote(C:/mylibs/extra headers)
+unix:INCLUDEPATH += $$quote(/home/user/extra headers)
+#! [quoting include paths with spaces]