summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/doc')
-rw-r--r--src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc12
-rw-r--r--src/widgets/doc/src/model-view-programming.qdoc28
-rw-r--r--src/widgets/doc/src/widgets-tutorial.qdoc2
3 files changed, 24 insertions, 18 deletions
diff --git a/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc b/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc
index ef9f1fe919..efb0b33cd1 100644
--- a/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc
+++ b/src/widgets/doc/snippets/code/doc_src_stylesheet.qdoc
@@ -360,7 +360,8 @@ QSpinBox::down-button { height: 10px }
//! [59]
-/* implicitly sets the size of down-button to the size of spindown.png */
+// implicitly sets the size of down-button to the
+// size of spindown.png
QSpinBox::down-button { image: url(:/images/spindown.png) }
//! [59]
@@ -489,7 +490,8 @@ QDialog { etch-disabled-text: 1 }
QLabel { border-color: red } /* red red red red */
QLabel { border-color: red blue } /* red blue red blue */
QLabel { border-color: red blue green } /* red blue green blue */
-QLabel { border-color: red blue green yellow } /* red blue green yellow */
+QLabel { border-color: red blue green yellow }
+/* red blue green yellow */
//! [82]
@@ -522,7 +524,8 @@ QTextEdit {
/* linear gradient from white to green */
QTextEdit {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
- stop:0 white, stop: 0.4 rgba(10, 20, 30, 40), stop:1 rgb(0, 200, 230, 200))
+ stop:0 white, stop: 0.4 rgba(10, 20, 30, 40),
+ stop:1 rgb(0, 200, 230, 200))
}
@@ -549,7 +552,8 @@ QTextEdit {
QMessageBox {
dialogbuttonbox-buttons-have-icons: true;
dialog-ok-icon: url(ok.svg);
- dialog-cancel-icon: url(cancel.png), url(grayed_cancel.png) disabled;
+ dialog-cancel-icon: url(cancel.png),
+ url(grayed_cancel.png) disabled;
}
//! [86]
diff --git a/src/widgets/doc/src/model-view-programming.qdoc b/src/widgets/doc/src/model-view-programming.qdoc
index 8fee91f0e5..098bb39fe2 100644
--- a/src/widgets/doc/src/model-view-programming.qdoc
+++ b/src/widgets/doc/src/model-view-programming.qdoc
@@ -354,7 +354,7 @@
the above code indicates, we need to supply more information when obtaining
a model index.
- \table
+ \table 70%
\row \li \inlineimage modelview-tablemodel.png
\li \b{Rows and columns}
@@ -386,7 +386,7 @@
\snippet code/doc_src_model-view-programming.cpp 3
- \table
+ \table 70%
\row \li \inlineimage modelview-treemodel.png
\li \b{Parents, rows, and columns}
@@ -417,7 +417,7 @@
\snippet code/doc_src_model-view-programming.cpp 6
- \table
+ \table 70%
\row \li \inlineimage modelview-roles.png
\li \b{Item roles}
@@ -902,7 +902,7 @@
The table below highlights the differences between current item and
selected items.
- \table
+ \table 70%
\header
\li Current Item
\li Selected Items
@@ -1557,7 +1557,7 @@
of items. The selection mode works in the same way for all of the
above widgets.
- \table
+ \table 70%
\row
\li \image selection-single.png
\li \b{Single item selections:}
@@ -1957,7 +1957,7 @@
To provide read-only access to data provided by a model, the following functions
\e{must} be implemented in the model's subclass:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::flags()}{flags()}
\li Used by other components to obtain information about each item provided by
the model. In many models, the combination of flags should include
@@ -1982,7 +1982,7 @@
Additionally, the following functions \e{must} be implemented in direct subclasses
of QAbstractTableModel and QAbstractItemModel:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::columnCount()}{columnCount()}
\li Provides the number of columns of data exposed by the model. List models do not
provide this function because it is already implemented in QAbstractListModel.
@@ -1994,7 +1994,7 @@
functions to allow rows and columns to be inserted and removed. To enable
editing, the following functions must be implemented correctly:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::flags()}{flags()}
\li Must return an appropriate combination of flags for each item. In particular,
the value returned by this function must include \l{Qt::ItemIsEditable} in
@@ -2024,7 +2024,7 @@
ensure that the appropriate functions are called to notify attached views and
delegates:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::insertRows()}{insertRows()}
\li Used to add new rows and items of data to all types of model.
Implementations must call
@@ -2119,7 +2119,7 @@
structure, it is up to each model subclass to create its own model indexes
by providing implementations of the following functions:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::index()}{index()}
\li Given a model index for a parent item, this function allows views and delegates
to access children of that item. If no valid child item - corresponding to the
@@ -2164,7 +2164,7 @@
The following types are used to store information about
each item as it is streamed into a QByteArray and stored in a QMimeData object:
- \table 90%
+ \table 70%
\header \li Description \li Type
\row \li Row \li int
\row \li Column \li int
@@ -2180,7 +2180,7 @@
export items of data in specialized formats by reimplementing the following
function:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::mimeData()}{mimeData()}
\li This function can be reimplemented to return data in formats other
than the default \c{application/x-qabstractitemmodeldatalist} internal
@@ -2215,7 +2215,7 @@
To take advantage of QAbstractItemModel's default implementation for the built-in
MIME type, new models must provide reimplementations of the following functions:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::insertRows()}{insertRows()}
\li {1, 2} These functions enable the model to automatically insert new data using
the existing implementation provided by QAbstractItemModel::dropMimeData().
@@ -2228,7 +2228,7 @@
To accept other forms of data, these functions must be reimplemented:
- \table 90%
+ \table 70%
\row \li \l{QAbstractItemModel::supportedDropActions()}{supportedDropActions()}
\li Used to return a combination of \l{Qt::DropActions}{drop actions},
indicating the types of drag and drop operations that the model accepts.
diff --git a/src/widgets/doc/src/widgets-tutorial.qdoc b/src/widgets/doc/src/widgets-tutorial.qdoc
index 31d8c612e9..1734f57712 100644
--- a/src/widgets/doc/src/widgets-tutorial.qdoc
+++ b/src/widgets/doc/src/widgets-tutorial.qdoc
@@ -160,6 +160,7 @@
\table
\row
\li \snippet tutorials/widgets/childwidget/main.cpp main program
+ \row
\li \inlineimage widgets-tutorial-childwidget.png
\endtable
\enddiv
@@ -182,6 +183,7 @@
\table
\row
\li \snippet tutorials/widgets/windowlayout/main.cpp main program
+ \row
\li \inlineimage widgets-tutorial-windowlayout.png
\endtable
\enddiv