Doc: Fix miscellaneous typos

Change-Id: Iaf0dd8974c3ad78beffa995c596a76fb3e4cceab
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
This commit is contained in:
Sze Howe Koh 2013-10-29 00:07:56 +08:00 committed by The Qt Project
parent c3c1faafe6
commit 0d7d5ff5d0
9 changed files with 10 additions and 11 deletions

View File

@ -416,7 +416,7 @@ text.data(); // returns "Qt is great!"
//! [46]
QString tmp = "test";
QByteArray text = tmp.toLocal8Bit();
char *data = new char[text.size()]
char *data = new char[text.size()];
strcpy(data, text.data());
delete [] data;
//! [46]
@ -424,7 +424,7 @@ delete [] data;
//! [47]
QString tmp = "test";
QByteArray text = tmp.toLocal8Bit();
char *data = new char[text.size() + 1]
char *data = new char[text.size() + 1];
strcpy(data, text.data());
delete [] data;
//! [47]

View File

@ -395,7 +395,7 @@
If a thread locks a resource but does not unlock it, the application may
freeze because the resource will become permanently unavailable to other threads.
This can happen, for example, if a an exception is thrown and forces the current
This can happen, for example, if an exception is thrown and forces the current
function to return without releasing its lock.
Another similar scenario is a \e{deadlock}. For example, suppose that
@ -408,7 +408,7 @@
QMutexLocker, QReadLocker and QWriteLocker are convenience classes that make it
easier to use QMutex and QReadWriteLock. They lock a resource when they are
constructed, and automatically unlock it when they are destroyed. They are
designed to simplify code that use QMutex and QReadWriteLocker, thus reducing
designed to simplify code that use QMutex and QReadWriteLock, thus reducing
the chances that a resource becomes permanently locked by accident.
\section1 High-Level Event Queues

View File

@ -682,7 +682,7 @@ bool QFileInfo::exists() const
\note If \a file is a symlink that points to a non-existing
file, false is returned.
\note Using this function is faster for than using
\note Using this function is faster than using
\c QFileInfo(file).exists() for file system access.
*/
bool QFileInfo::exists(const QString &file)

View File

@ -98,7 +98,7 @@ QT_BEGIN_NAMESPACE
\since 4.4
\value Recursive In this mode, a thread can lock the same
QReadWriteLock multiple times and the mutex won't be unlocked
QReadWriteLock multiple times. The QReadWriteLock won't be unlocked
until a corresponding number of unlock() calls have been made.
\value NonRecursive In this mode, a thread may only lock a

View File

@ -591,7 +591,6 @@ QNetworkConfiguration::BearerType QNetworkConfiguration::bearerTypeFamily() cons
\li Value
\row
\li BearerUnknown
\li
\li The session is based on an unknown or unspecified bearer type. The value of the
string returned describes the bearer type.
\row

View File

@ -204,7 +204,7 @@ bool QSqlTableModelPrivate::exec(const QString &stmt, bool prepStatement,
\inmodule QtSql
QSqlTableModel is a high-level interface for reading and writing
database records from a single table. It is build on top of the
database records from a single table. It is built on top of the
lower-level QSqlQuery and can be used to provide data to view
classes such as QTableView. For example:

View File

@ -1042,7 +1042,7 @@ QAbstractItemView::SelectionBehavior QAbstractItemView::selectionBehavior() cons
Sets the current item to be the item at \a index.
Unless the current selection mode is
\l{QAbstractItemView::}{NoSelection}, the item is also be selected.
\l{QAbstractItemView::}{NoSelection}, the item is also selected.
Note that this function also updates the starting position for any
new selections the user performs.

View File

@ -1456,7 +1456,7 @@ QListWidgetItem *QListWidget::currentItem() const
Sets the current item to \a item.
Unless the selection mode is \l{QAbstractItemView::}{NoSelection},
the item is also be selected.
the item is also selected.
*/
void QListWidget::setCurrentItem(QListWidgetItem *item)
{

View File

@ -2125,7 +2125,7 @@ QTableWidgetItem *QTableWidget::currentItem() const
Sets the current item to \a item.
Unless the selection mode is \l{QAbstractItemView::}{NoSelection},
the item is also be selected.
the item is also selected.
\sa currentItem(), setCurrentCell()
*/