Doc: corrected link/autolink errors in corelib/doc/src

Task-number: QTBUG-40362
Change-Id: I0ff1523c76724e0662bafed08515ea06bbdd8381
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
Nico Vertriest 2014-09-09 13:24:30 +02:00
parent 0db3ea4048
commit 20a6b6b3ca
3 changed files with 14 additions and 12 deletions

View File

@ -147,7 +147,7 @@
The output sent to the debug stream can, of course, be made as simple or as
complicated as you like. Note that the value returned by this function is
the QDebug object itself, though this is often obtained by calling the
maybeSpace() member function of QDebug that pads out the stream with space
\l{QDebug::}{maybeSpace()} member function of QDebug that pads out the stream with space
characters to make it more readable.
\section1 Further Reading

View File

@ -194,7 +194,7 @@
\l{QCoreApplication::}{sendEvent()} processes the event immediately.
When it returns, the event filters and/or the object itself have
already processed the event. For many event classes there is a function
called isAccepted() that tells you whether the event was accepted
called \l{QEvent::}{isAccepted()} that tells you whether the event was accepted
or rejected by the last handler that was called.
\l{QCoreApplication::}{postEvent()} posts the event on a queue for

View File

@ -30,15 +30,15 @@
\title File and Datastream Functions
The QIODevice class is the base interface class of all I/O devices in
\l {Qt Core}. QIODevice provides both a common implementation and an
\l{Qt Core}. QIODevice provides both a common implementation and an
abstract interface for devices that support reading and writing of blocks
of data. The device can be a memory buffer, a file, or a datastream.
Some subclasses like QFile have been implemented using a memory buffer for
intermediate storing of data. This speeds up programs by reducing
read/write operations. Buffering makes functions like getChar() and putChar()
fast, as they can operate on the memory buffer instead of directly on the
device itself.
read/write operations. Buffering makes functions like \l{QFile::}{getChar()} and
\l{QFile::}{putChar()} fast, as they can operate on the memory buffer instead of
directly on the device itself.
The QFile class provides functions for reading from and writing to files.
A QFile may be used by itself or, more conveniently, with a QTextStream or
@ -48,6 +48,7 @@ QBuffer allows you to access a QByteArray using the QIODevice interface.
The QByteArray is treated just as a standard random-accessed file.
An example:
\code
QBuffer buffer;
char ch;
@ -58,12 +59,13 @@ An example:
buffer.getChar(&ch); // ch == 't'
buffer.getChar(&ch); // ch == ' '
buffer.getChar(&ch); // ch == 'r'
\endcode
Call open() to open the buffer. Then call write() or putChar() to write to
the buffer, and read(), readLine(), readAll(), or getChar() to read from it.
size() returns the current size of the buffer, and you can seek to arbitrary
positions in the buffer by calling seek(). When you are done with accessing
the buffer, call close().
Call \l{QBuffer::}{open()} to open the buffer. Then call \l{QBuffer::}{write()} or \l{QBuffer::}{putChar()} to write to
the buffer, and \l{QBuffer::}{read()}, \l{QBuffer::}{readLine()}, \l{QBuffer::}{readAll()}, or \l{QBuffer::}{getChar()} to read from it.
\l{QBuffer::}{size()} returns the current size of the buffer, and you can seek to arbitrary
positions in the buffer by calling \l{QBuffer::}{seek()}. When you are done with accessing
the buffer, call \l{QBuffer::}{close()}.
The QDataStream class provides serialization of binary data to a QIODevice.
A data stream is a binary stream of encoded information which is 100% inde-
@ -91,7 +93,7 @@ There are three general ways to use QTextStream when reading text files:
\li Character by character, by streaming into QChar or char types. This
method is often used for convenient input handling when parsing files,
independent of character encoding and end-of-line semantics. To skip
white space, call skipWhiteSpace().
white space, call \l{QTextStream::}{skipWhiteSpace()}.
\endlist
QByteArray can be used to store both raw bytes (including \c{\0}) and traditional