summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/development/rcc.qdoc49
-rw-r--r--doc/src/frameworks-technologies/threads.qdoc45
-rw-r--r--doc/src/snippets/code/doc_src_properties.qdoc2
3 files changed, 56 insertions, 40 deletions
diff --git a/doc/src/development/rcc.qdoc b/doc/src/development/rcc.qdoc
index b479915..4c2e0c6 100644
--- a/doc/src/development/rcc.qdoc
+++ b/doc/src/development/rcc.qdoc
@@ -57,37 +57,40 @@
\table
\header \o Option \o Argument \o Description
- \row \o \c{-o} \o \o Writes output to file rather than
- stdout.
+ \row \o \c{-o} \o \c{file} \o Write output to \c{file} rather than to stdout.
- \row \o \c{-name} \o \c name \o Creates an external initialization
- function with name.
+ \row \o \c{-name} \o \c{name} \o Create an external initialization
+ function with \c{name}.
- \row \o \c{-threshold} \o \c level \o Specifies a threshold (in bytes)
- to use when compressing files. If
- the file is smaller than the
- threshold, it will not be
- compressed, independent of what
- the compression level is.
+ \row \o \c{-threshold} \o \c{level} \o Specifies a threshold \c{level} (in
+ bytes) to use when deciding whether
+ to compress a file. If the file is
+ smaller than the threshold \c{level},
+ it is not compressed. The default
+ threshold level is 70 bytes.
- \row \o \c{-compress} \o \c level \o Compresses input files with the
- given level. Level is an integer
- from 1 to 9 - 1 being the fastest,
- producing the least compression;
- 9 being the slowest, producing
- the most compression.
+ \row \o \c{-compress} \o \c{level} \o Compress input files to the given
+ compression \c{level}, which is an
+ integer in the range 1 to 9. Level 1
+ does the least compression but is
+ fastest. Level 9 does the most
+ compression but is slowest. To turn
+ off compression, use \c{-no-compress}.
+ The default value for \c{level} is -1,
+ which means use zlib's default
+ compression level.
- \row \o \c{-root} \o \c path \o Prefixes the resource access path
- with root path.
+ \row \o \c{-root} \o \c{path} \o Prefix the resource access path with \c{path}.
+ The default is no prefix.
- \row \o \c{-no-compress} \o \o Disables all compression.
+ \row \o \c{-no-compress} \o \o Disable compression.
- \row \o \c{-binary} \o \o Outputs a binary file for use as
- a dynamic resource.
+ \row \o \c{-binary} \o \o Output a binary file for use as a dynamic resource.
- \row \o \c{-version} \o \o Displays version information.
+ \row \o \c{-version} \o \o Display version information.
+
+ \row \o \c{-help} \o \o Display usage information.
- \row \o \c{-help} \o \o Displays usage information.
\endtable
See also \l{The Qt Resource System} for more information about embedding
diff --git a/doc/src/frameworks-technologies/threads.qdoc b/doc/src/frameworks-technologies/threads.qdoc
index fa173c5..fbfe94b 100644
--- a/doc/src/frameworks-technologies/threads.qdoc
+++ b/doc/src/frameworks-technologies/threads.qdoc
@@ -472,24 +472,37 @@
\section1 Signals and Slots Across Threads
- Qt supports three types of signal-slot connections:
+ Qt supports these signal-slot connection types:
\list
- \o With \l{Qt::DirectConnection}{direct connections}, the
- slot gets called immediately when the signal is emitted. The
- slot is executed in the thread that emitted the signal (which
- is not necessarily the thread where the receiver object
- lives).
-
- \o With \l{Qt::QueuedConnection}{queued connections}, the
- slot is invoked when control returns to the event loop of the
- thread to which the object belongs. The slot is executed in
- the thread where the receiver object lives.
-
- \o With \l{Qt::AutoConnection}{auto connections} (the default),
- the behavior is the same as with direct connections if
- the signal is emitted in the thread where the receiver lives;
- otherwise, the behavior is that of a queued connection.
+
+ \o \l{Qt::AutoConnection}{Auto Connection} (default) The behavior
+ is the same as the Direct Connection, if the emitter and
+ receiver are in the same thread. The behavior is the same as
+ the Queued Connection, if the emitter and receiver are in
+ different threads.
+
+ \o \l{Qt::DirectConnection}{Direct Connection} The slot is invoked
+ immediately, when the signal is emitted. The slot is executed
+ in the emitter's thread, which is not necessarily the
+ receiver's thread.
+
+ \o \l{Qt::QueuedConnection}{Queued Connection} The slot is invoked
+ when control returns to the event loop of the receiver's
+ thread. The slot is executed in the receiver's thread.
+
+ \o \l{Qt::BlockingQueuedConnection}{Blocking Queued Connection}
+ The slot is invoked as for the Queued Connection, except the
+ current thread blocks until the slot returns. \note Using this
+ type to connect objects in the same thread will cause deadlock.
+
+ \o \l{Qt::UniqueConnection}{Unique Connection} The behavior is the
+ same as the Auto Connection, but the connection is made only if
+ it does not duplicate an existing connection. i.e., if the same
+ signal is already connected to the same slot for the same pair
+ of objects, then the connection is not made and connect()
+ returns false.
+
\endlist
The connection type can be specified by passing an additional
diff --git a/doc/src/snippets/code/doc_src_properties.qdoc b/doc/src/snippets/code/doc_src_properties.qdoc
index 9845abb..2567b2a 100644
--- a/doc/src/snippets/code/doc_src_properties.qdoc
+++ b/doc/src/snippets/code/doc_src_properties.qdoc
@@ -112,7 +112,7 @@ MyClass *myinstance = new MyClass;
QObject *object = myinstance;
myinstance->setPriority(MyClass::VeryHigh);
-object->setProperty("priority", "VeryHigh");
+object->setProperty("priority", (int)MyClass::VeryHigh);
//! [6]