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:
parent
c3c1faafe6
commit
0d7d5ff5d0
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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()
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user