Doc: Fixing typos
authorSergio Ahumada <sergio.ahumada@nokia.com>
Sun, 30 Oct 2011 16:34:46 +0000 (17:34 +0100)
committerSergio Ahumada <sergio.ahumada@nokia.com>
Mon, 31 Oct 2011 19:20:46 +0000 (20:20 +0100)
Change-Id: I445b4cb0fe88d775c9421fbf1e8b7bb76dec0fc4
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
27 files changed:
doc/src/examples/application.qdoc
doc/src/examples/completer.qdoc
doc/src/examples/customsortfiltermodel.qdoc
doc/src/examples/dbscreen.qdoc
doc/src/examples/dragdroprobot.qdoc
doc/src/examples/drilldown.qdoc
doc/src/examples/elasticnodes.qdoc
doc/src/examples/extension.qdoc
doc/src/examples/findfiles.qdoc
doc/src/examples/imageviewer.qdoc
doc/src/examples/licensewizard.qdoc
doc/src/examples/mandelbrot.qdoc
doc/src/examples/orderform.qdoc
doc/src/examples/padnavigator.qdoc
doc/src/examples/painterpaths.qdoc
doc/src/examples/screenshot.qdoc
doc/src/examples/scribble.qdoc
doc/src/examples/sliders.qdoc
doc/src/examples/tablet.qdoc
doc/src/examples/tooltips.qdoc
doc/src/examples/transformations.qdoc
doc/src/sql/sql-programming/sql-driver.qdoc
doc/src/sql/sql-programming/sql-programming.qdoc
doc/src/widgets/modelview.qdoc
doc/src/widgets/widgets-and-layouts/gallery.qdoc
doc/src/widgets/widgets-and-layouts/layout.qdoc
doc/src/widgets/widgets-and-layouts/stylesheet.qdoc

index 9e03bc4..e4fceec 100644 (file)
     the string for translation. It is a good habit to call
     \l{QObject::tr()}{tr()} on all user-visible strings, in case you
     later decide to translate your application to other languages.
-    The \l{Internationalization with Qt} overview convers
+    The \l{Internationalization with Qt} overview covers
     \l{QObject::tr()}{tr()} in more detail.
 
     \snippet examples/mainwindows/application/mainwindow.cpp 15
index 408de6b..d4a4e6d 100644 (file)
 
     \snippet examples/tools/completer/mainwindow.cpp 5
 
-    The mouse cursor is then overriden with Qt::WaitCursor before we fill
+    The mouse cursor is then overridden with Qt::WaitCursor before we fill
     a QStringList object, \c words, with the contents of \c file. Once this
     is done, we restore the mouse cursor.
 
index e145e82..8c402ac 100644 (file)
@@ -91,7 +91,7 @@
     {QSortFilterProxyModel::filterAcceptsRow()}{filterAcceptsRow()}
     function to only accept rows with valid dates, and
     QSortFilterProxyModel::lessThan() to be able to sort the senders
-    by their email adresses. Finally, we implement a \c dateInRange()
+    by their email addresses. Finally, we implement a \c dateInRange()
     convenience function that we will use to determine if a date is
     valid.
 
 
     \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 4
 
-    We want to sort the senders by their email adresses. The \l
+    We want to sort the senders by their email addresses. The \l
     {QSortFilterProxyModel::}{lessThan()} function is used as the <
     operator when sorting. The default implementation handles a
     collection of types including QDateTime and String, but in order
-    to be able to sort the senders by their email adresses we must
-    first identify the adress within the given string:
+    to be able to sort the senders by their email addresses we must
+    first identify the address within the given string:
 
     \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 6
 
-    We use QRegExp to define a pattern for the adresses we are looking
+    We use QRegExp to define a pattern for the addresses we are looking
     for. The QRegExp::indexIn() function attempts to find a match in
     the given string and returns the position of the first match, or
     -1 if there was no match. If the given string contains the
     pattern, we use QRegExp's \l {QRegExp::cap()}{cap()} function to
-    retrieve the actual adress. The \l {QRegExp::cap()}{cap()}
+    retrieve the actual address. The \l {QRegExp::cap()}{cap()}
     function returns the text captured by the \e nth
     subexpression. The entire match has index 0 and the parenthesized
     subexpressions have indexes starting from 1 (excluding
index 7f6bb18..793b5fc 100644 (file)
 
     \section1 Step 3: Creating the Driver Plugin
 
-    Qt provides a high level API for writing Qt extentions. One of the plugin
+    Qt provides a high level API for writing Qt extensions. One of the plugin
     base classes provided is QScreenDriverPlugin, which we use in this example
     to create our screen driver plugin.
 
index 84d8af4..c68f6cc 100644 (file)
 
     \snippet examples/graphicsview/dragdroprobot/robot.cpp 10
 
-    The constuctor starts by setting the flag
+    The constructor starts by setting the flag
     \l{QGraphicsItem::ItemHasNoContents}{ItemHasNoContents}, which is a minor
     optimization for items that have no visual appearance.
 
index 1903df6..13c4117 100644 (file)
     The animation is implemented using the QTimeLine class together
     with the event handlers and the private \c setFrame() slot: The
     image item will expand when the mouse cursor hovers over it,
-    returning back to its orignal size when the cursor leaves its
+    returning back to its original size when the cursor leaves its
     borders.
 
     Finally, we store the location ID that this particular record is
index e5399b1..7b45631 100644 (file)
     \snippet examples/graphicsview/elasticnodes/node.cpp 5
 
     In theory, the sum of pushing and pulling forces should stabilize to
-    precisely 0. In practise, however, they never do. To circumvent errors in
+    precisely 0. In practice, however, they never do. To circumvent errors in
     numerical precision, we simply force the sum of forces to be 0 when they
     are less than 0.1.
 
 
     If the length of the vector is less than 20 (i.e., if two nodes overlap),
     then we fix the source and destination pointer at the center of the source
-    node. In practise this case is very hard to reproduce manually, as the
+    node. In practice this case is very hard to reproduce manually, as the
     forces between the two nodes is then at its maximum.
 
     It's important to notice that we call
index 41fddbb..a2c3590 100644 (file)
     \snippet examples/dialogs/extension/finddialog.cpp 4
 
     Before we create the main layout, we create several child layouts
-    for the widgets: First we allign the QLabel ans its buddy, the
-    QLineEdit, using a QHBoxLayout. Then we vertically allign the
+    for the widgets: First we align the QLabel and its buddy, the
+    QLineEdit, using a QHBoxLayout. Then we vertically align the
     QLabel and QLineEdit with the check boxes associated with the
     simple search, using a QVBoxLayout. We also create a QVBoxLayout
     for the buttons. In the end we lay out the two latter layouts and
index 026d61f..4c03aac 100644 (file)
@@ -41,7 +41,7 @@
 
     With the Find Files application the user can search for files in a
     specified directory, matching a specified file name (using wild
-    cards if appropiate) and containing a specified text.
+    cards if appropriate) and containing a specified text.
 
     The user is provided with a \gui Browse option, and the result of
     the search is displayed in a table with the names of the files
index 49b3111..be47c7d 100644 (file)
 
     In release mode, the macro simply disappear. The mode can be set
     in the application's \c .pro file. One way to do so is to add an
-    option to \gui qmake when building the appliction:
+    option to \gui qmake when building the application:
 
     \snippet doc/src/snippets/code/doc_src_examples_imageviewer.qdoc 2
 
     actions providing the application features.
 
     We assign a short-cut key to each action and connect them to the
-    appropiate slots. We only enable the \c openAct and \c exitAxt at
+    appropriate slots. We only enable the \c openAct and \c exitAct at
     the time of creation, the others are updated once an image has
     been loaded into the application. In addition we make the \c
     fitToWindowAct \l {QAction::checkable}{checkable}.
index a58e029..1e11732 100644 (file)
     \dots
     \snippet examples/dialogs/licensewizard/licensewizard.cpp 13
 
-    In \c showHelp(), we display help texts that are appropiate for
+    In \c showHelp(), we display help texts that are appropriate for
     the current page. If the user clicks \gui Help twice for the same
     page, we say, "Sorry, I already gave what help I could. Maybe you
     should try asking a human?"
index eb53e95..c4a6a49 100644 (file)
     \l{QImage}s. It is called from the constructor to initialize the
     \c colormap array with pleasing colors.
 
-    \section1 MandelbrotWidget Class Defintion
+    \section1 MandelbrotWidget Class Definition
 
     The \c MandelbrotWidget class uses \c RenderThread to draw the
     Mandelbrot set on screen. Here's the class definition:
index ea93d86..7ab56da 100644 (file)
         \row
             \o block \o \c{I want to receive...}
         \row
-            \o block \o \c{I do not want to recieve...}
+            \o block \o \c{I do not want to receive...}
         \row
             \o block \o \c{X}
     \endtable
index 591d3d0..6838e0a 100644 (file)
@@ -51,7 +51,7 @@
 
     \section1 RoundRectItem Class Definition
 
-    The \c RoundRectItem class is used by itself to diplay the icons on the
+    The \c RoundRectItem class is used by itself to display the icons on the
     pad, and as a base class for \c FlippablePad, the class for the pad itself.
     The role of the class is to paint a round rectangle of a specified size and
     gradient color, and optionally to paint a pixmap icon on top. To support \c
     \l{QGraphicsItem::ItemCoordinateCache}{ItemCoordinateCache}. This mode
     causes the item's rendering to be cached into an off-screen pixmap that
     remains persistent as we move and transform the item. This mode is ideal
-    for this example, and works particularily well with OpenGL and OpenGL ES.
+    for this example, and works particularly well with OpenGL and OpenGL ES.
 
     \snippet examples/graphicsview/padnavigator/roundrectitem.cpp 1
 
 
     We then draw the "foreground" round rectangle itself. The fill depends on
     the \c fill property; if true, we will with a plain QPalette::Window color.
-    We get the corrent brush from QApplication::palette(). We assign a single
+    We get the current brush from QApplication::palette(). We assign a single
     unit wide pen for the stroke, assign the brush, and then draw the
     rectangle.
 
     RoundRectItem that is slightly larger than the icons on the pad. We create
     it as an immediate child of the \c FlippablePad, so the selection item is a
     sibling to all the icons. By giving it a
-    \l{QGraphicsItem::zValue()}{Z-value} of 0.5 we ensure it will slide beteen
+    \l{QGraphicsItem::zValue()}{Z-value} of 0.5 we ensure it will slide between
     the pad and its icons.
 
     What follows now is a series of animation initializations.
index 2f740b8..acf9772 100644 (file)
     new subpath, and construct three sides of a square using the
     QPainterPath::lineTo() function.
 
-    Now, when we call the QPainterPath::closeSubpath() fucntion the
+    Now, when we call the QPainterPath::closeSubpath() function the
     last side is created. Remember that the
     QPainterPath::closeSubpath() function draws a line to the
     beginning of the \e current subpath, i.e the square.
 
     Finally, we initialize the \c RenderArea widgets by calling the \c
     fillRuleChanged(), \c fillGradientChanged() and \c
-    penColorChanged() slots, and we set the inital pen width and
+    penColorChanged() slots, and we set the initial pen width and
     window title.
 
     \snippet examples/painting/painterpaths/window.cpp 19
     painter path is rendered in the right size, i.e that it grows with
     the \c RenderArea widget when the application is resized. When we
     constructed the various painter paths, they were all rnedered
-    within a square with a 100 pixel width wich is equivalent to \c
+    within a square with a 100 pixel width which is equivalent to \c
     RenderArea::sizeHint(). The QPainter::scale() function scales the
     coordinate system by the \c RenderArea widget's \e current width
     and height divided by 100.
index bc87fdb..190b175 100644 (file)
@@ -99,7 +99,7 @@
 
     We create the applications's buttons and the group box containing
     the application's options, and put it all into a main
-    layout. Finally we take the initial screenshot, and set the inital
+    layout. Finally we take the initial screenshot, and set the initial
     delay and the window title, before we resize the widget to a
     suitable size.
 
index da9b0b6..b09f570 100644 (file)
     \snippet examples/widgets/scribble/mainwindow.cpp 14
 
     In the \c createAction() function we create the actions
-    representing the menu entries and connect them to the appropiate
+    representing the menu entries and connect them to the appropriate
     slots. In particular we create the actions found in the \gui
     {Save As} sub-menu. We use QImageWriter::supportedImageFormats()
     to get a list of the supported formats (as a QList<QByteArray>).
index 7e47dcc..721acae 100644 (file)
 
     \snippet examples/widgets/sliders/slidersgroup.cpp 0
 
-    First we create the slider-like widgets with the appropiate
+    First we create the slider-like widgets with the appropriate
     properties. In particular we set the focus policy for each
     widget. Qt::FocusPolicy is an enum type that defines the various
     policies a widget can have with respect to acquiring keyboard
index 8639ab6..ce4ab2a 100644 (file)
 
     \snippet examples/widgets/tablet/tabletcanvas.cpp 11
    
-    We finally check wether the pointer is the stylus or the eraser.
+    We finally check whether the pointer is the stylus or the eraser.
     If it is the eraser, we set the color to the background color of
     the pixmap an let the pressure decide the pen width, else we set
     the colors we have set up previously in the function.
index 9786c40..2b39bf9 100644 (file)
 
     \snippet examples/widgets/tooltips/sortingbox.cpp 1
 
-    To be able to show the appropiate tooltips while the user is
+    To be able to show the appropriate tooltips while the user is
     moving the cursor around, we need to enable mouse tracking for the
     widget.
 
 
     The QPainter::setBrush() function sets the current brush used by
     the painter. When the provided argument is a QColor, the function
-    calls the appropiate QBrush constructor which creates a brush with
+    calls the appropriate QBrush constructor which creates a brush with
     the specified color and Qt::SolidPattern style. The
     QPainter::drawPath() function draws the given path using the
     current pen for outline and the current brush for filling.
     to appear at a random position, and we use the \c
     randomItemPosition() function to calculate such a position. We
     make sure that the item appears within the visible area of the
-    \c SortingBox widget, using the widget's current width and heigth
+    \c SortingBox widget, using the widget's current width and height
     when calculating the random coordinates.
 
     \snippet examples/widgets/tooltips/sortingbox.cpp 25
 
     As with \c initialItemPosition(), the \c initialItemColor()
     function is called from the constructor. The purposes of both
-    functions are purely cosmetic: We want to control the inital
+    functions are purely cosmetic: We want to control the initial
     position and color of the three first items.
 
     \snippet examples/widgets/tooltips/sortingbox.cpp 26
index 2d9f9f7..74c1a84 100644 (file)
 
     In the constructor we pass the parent parameter on to the base
     class, and customize the font that we will use to render the
-    coordinates. The QWidget::font() funtion returns the font
+    coordinates. The QWidget::font() function returns the font
     currently set for the widget. As long as no special font has been
     set, or after QWidget::setFont() is called, this is either a
     special font for the widget class, the parent's font or (if this
 
     \snippet examples/painting/transformations/renderarea.cpp 5
 
-    The \c paintEvent() event handler recieves the \c RenderArea
+    The \c paintEvent() event handler receives the \c RenderArea
     widget's paint events. A paint event is a request to repaint all
     or part of the widget. It can happen as a result of
     QWidget::repaint() or QWidget::update(), or because the widget was
index 40c7c6a..3fc685b 100644 (file)
@@ -86,7 +86,7 @@
 
     \snippet doc/src/snippets/code/doc_src_sql-driver.qdoc 0
 
-    The \c configure script cannot detect the neccessary libraries
+    The \c configure script cannot detect the necessary libraries
     and include files if they are not in the standard paths, so it
     may be necessary to specify these paths using the \c -I and \c -L
     command-line options. For example, if your MySQL include files
 
     \bold{Note:} If you are using the Oracle Instant Client package,
     you will need to set LD_LIBRARY_PATH when building the OCI SQL plugin
-    and when running an applicaiton that uses the OCI SQL plugin. You can
+    and when running an application that uses the OCI SQL plugin. You can
     avoid this requirement by setting and RPATH and listing all of the
     libraries to link to. Here is an example:
     \snippet doc/src/snippets/code/doc_src_sql-driver.qdoc 32
     QODBC plugin with such drivers it has to be compiled with the
     Q_ODBC_VERSION_2 defined.
 
-    For the Oracle 9 ODBC driver (Windows), it is neccessary to check
+    For the Oracle 9 ODBC driver (Windows), it is necessary to check
     "SQL_WCHAR support" in the ODBC driver manager otherwise Oracle
     will convert all Unicode strings to local 8-bit.
 
     follow SQLite patch releases. Patch releases are therefore both backward and forward
     compatible.
 
-    To force SQLite to use a specific file format, it is neccessary to build and
+    To force SQLite to use a specific file format, it is necessary to build and
     ship your own database plugin with your own SQLite library as illustrated above.
     Some versions of SQLite can be forced to write a specific file format by setting
     the \c{SQLITE_DEFAULT_FILE_FORMAT} define when building SQLite.
 
     \snippet doc/src/snippets/code/doc_src_sql-driver.qdoc 29
 
-    If you are using Firebird, the Firebird library has to be set explicitely:
+    If you are using Firebird, the Firebird library has to be set explicitly:
 
     \snippet doc/src/snippets/code/doc_src_sql-driver.qdoc 30
 
index 55f9748..0be443c 100644 (file)
     QSqlQuery::previous(), QSqlQuery::first(), QSqlQuery::last(), and
     QSqlQuery::seek(). The current row index is returned by
     QSqlQuery::at(), and the total number of rows in the result set
-    is avaliable as QSqlQuery::size() for databases that support it.
+    is available as QSqlQuery::size() for databases that support it.
 
     To determine whether a database driver supports a given feature,
     use QSqlDriver::hasFeature(). In the following example, we call
index 9cbba47..5ac15b9 100644 (file)
@@ -56,7 +56,7 @@
 
     \list
     \o The difference between standard and model/view widgets
-    \o Adapters betweeen forms and models
+    \o Adapters between forms and models
     \o Developing a simple model/view application
     \o Predefined models
     \o Intermediate topics such as:
 
     The selection model (as shown above) can be retrieved, but it can also be
     set with \l{QAbstractItemView}{QAbstractItemView::setSelectionModel}. This
-    is how it's possible to have 3 view classes with synchronised selections
+    is how it's possible to have 3 view classes with synchronized selections
     because only one instance of a selection model is used. To share a selection
     model between 3 views use \l{QAbstractItemView::}{selectionModel()} and
     assign the result to the second and third view class with
index eb27ec9..865321d 100644 (file)
@@ -31,7 +31,7 @@
   \brief Qt widgets shown in different styles on various platforms.
 
   Qt's support for widget styles and themes enables your application to fit in
-  with the native desktop enviroment. Below, you can find links to the various
+  with the native desktop environment. Below, you can find links to the various
   widget styles that are supplied with Qt 4.
 
   \table
index 3db58c2..394d537 100644 (file)
         \o  Any widgets that are allocated less space than their minimum size
             (or minimum size hint if no minimum size is specified) are
             allocated this minimum size they require. (Widgets don't have to
-            have a minimum size or minimum size hint in which case the strech
+            have a minimum size or minimum size hint in which case the stretch
             factor is their determining factor.)
 
         \o  Any widgets that are allocated more space than their maximum size
             are allocated the maximum size space they require. (Widgets do not
-            have to have a maximum size in which case the strech factor is
+            have to have a maximum size in which case the stretch factor is
             their determining factor.)
     \endlist
 
index 80376b4..8375587 100644 (file)
 
     \section2 Customizing QCheckBox
 
-    Styling of a QCheckBox is almost indentical to styling a QRadioButton. The
+    Styling of a QCheckBox is almost identical to styling a QRadioButton. The
     main difference is that a tristate QCheckBox has an indeterminate state.
 
     \snippet doc/src/snippets/code/doc_src_stylesheet.qdoc 108