summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2012-02-03 23:53:31 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-08 09:20:27 +0100
commit80cebfde10cf34dcc0777c24f1b3ff37cad20181 (patch)
treedf90859850d6a6d23434f0c82146c3b788f708bb /src
parentff2de5928b1031d6946807f1e119b0765bc755c8 (diff)
downloadqt4-tools-80cebfde10cf34dcc0777c24f1b3ff37cad20181.tar.gz
Some small doc fixes, typos and removal of one incorrect paragraph
The QTextStream paragraph that is removed referred to something that is incorrect. This was confirmed for Windows, Linux and Mac. Change-Id: Ibac8f82482f2060308b5b8485d6da228bdf52fe6 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qtextstream.cpp5
-rw-r--r--src/gui/itemviews/qlistwidget.cpp8
-rw-r--r--src/gui/itemviews/qtreeview.cpp2
-rw-r--r--src/gui/widgets/qtextedit.cpp2
4 files changed, 6 insertions, 11 deletions
diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp
index 194e9876f4..adef0b0ce4 100644
--- a/src/corelib/io/qtextstream.cpp
+++ b/src/corelib/io/qtextstream.cpp
@@ -66,11 +66,6 @@ static const int QTEXTSTREAM_BUFFERSIZE = 16384;
\snippet doc/src/snippets/code/src_corelib_io_qtextstream.cpp 1
- Note that you cannot use QTextStream::atEnd(), which returns true when you
- have reached the end of the data stream, with stdin. The reason for this is
- that as long as stdin doesn't give any input to the QTextStream, \c atEnd()
- will return true even if the stdin is open and waiting for more characters.
-
Besides using QTextStream's constructors, you can also set the
device or string QTextStream operates on by calling setDevice() or
setString(). You can seek to a position by calling seek(), and
diff --git a/src/gui/itemviews/qlistwidget.cpp b/src/gui/itemviews/qlistwidget.cpp
index 28e6e80302..180b8e9de5 100644
--- a/src/gui/itemviews/qlistwidget.cpp
+++ b/src/gui/itemviews/qlistwidget.cpp
@@ -1166,10 +1166,10 @@ void QListWidgetPrivate::_q_dataChanged(const QModelIndex &topLeft,
\snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 1
- If you need to insert a new item into the list at a particular position, it
- is more required to construct the item without a parent widget and use the
- insertItem() function to place it within the list. The list widget will
- take ownership of the item.
+ If you need to insert a new item into the list at a particular position,
+ then it should be constructed without a parent widget. The insertItem()
+ function should then be used to place it within the list. The list widget
+ will take ownership of the item.
\snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 6
\snippet doc/src/snippets/qlistwidget-using/mainwindow.cpp 7
diff --git a/src/gui/itemviews/qtreeview.cpp b/src/gui/itemviews/qtreeview.cpp
index 927721a0fb..813787fb8d 100644
--- a/src/gui/itemviews/qtreeview.cpp
+++ b/src/gui/itemviews/qtreeview.cpp
@@ -83,7 +83,7 @@ QT_BEGIN_NAMESPACE
It is simple to construct a tree view displaying data from a
model. In the following example, the contents of a directory are
- supplied by a QDirModel and displayed as a tree:
+ supplied by a QFileSystemModel and displayed as a tree:
\snippet doc/src/snippets/shareddirmodel/main.cpp 3
\snippet doc/src/snippets/shareddirmodel/main.cpp 6
diff --git a/src/gui/widgets/qtextedit.cpp b/src/gui/widgets/qtextedit.cpp
index 6e97fc1338..453b38bccc 100644
--- a/src/gui/widgets/qtextedit.cpp
+++ b/src/gui/widgets/qtextedit.cpp
@@ -406,7 +406,7 @@ void QTextEditPrivate::_q_ensureVisible(const QRectF &_rect)
within the text.
If you want to limit the total number of paragraphs in a QTextEdit,
- as it is for example open useful in a log viewer, then you can use
+ as for example it is often useful in a log viewer, then you can use
QTextDocument's maximumBlockCount property for that.
\section2 Read-only Key Bindings