Doc: update SQL examples

- screenshot: remove OS-dependent part of window
- \image --> \borderedimage

Change-Id: I3eb98595e5c2eb254d3857e4c81dfedac8b7939e
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Nico Vertriest 2016-11-03 15:28:28 +01:00 committed by Nico Vertriest
parent 7d3b291c22
commit eedf8f28e0
20 changed files with 11 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -34,7 +34,7 @@
The Books example shows how Qt's SQL classes can be used with the model/view
framework to create rich user interfaces for information stored in a database.
\image books-demo.png
\borderedimage books-demo.png
Information about a collection of books is held in a database. The books are
catalogued by author, title, genre, and year of publication. Although each of

View File

@ -34,7 +34,7 @@
caching any changes to the data until the user explicitly submits them using a
push button.
\image cachedtable-example.png
\borderedimage cachedtable-example.png
The example consists of a single class, \c TableEditor, which is a
custom dialog widget that allows the user to modify data stored in

View File

@ -34,7 +34,7 @@
well as submit changes, using the QSqlRelationalTableModel and
QDataWidgetMapper classes.
\image drilldown-example.png Screenshot of the Drill Down Example
\borderedimage drilldown-example.png Screenshot of the Drill Down Example
When running the example application, a user can retrieve
information about each item by clicking the corresponding image.

View File

@ -40,5 +40,5 @@
the database and the associated XML file using the API provided by
the Qt SQL and Qt XML modules, respectively.
\image masterdetail-example.png
\borderedimage masterdetail-example.png
*/

View File

@ -34,5 +34,5 @@
data obtained from a SQL query, using a model that encapsulates
the query and table views to display the results.
\image querymodel-example.png
\borderedimage querymodel-example.png
*/

View File

@ -33,5 +33,5 @@
\brief The Relational Table Model example shows how to use table views with a relational
model to visualize the relations between items in a database.
\image relationaltablemodel-example.png
\borderedimage relationaltablemodel-example.png
*/

View File

@ -33,5 +33,5 @@
\brief The SQL Browser example shows how a data browser can be used to visualize
the results of SQL statements on a live database.
\image sqlbrowser-demo.png
\borderedimage sqlbrowser-demo.png
*/

View File

@ -33,7 +33,7 @@
\brief The SQL Widget Mapper example shows how to use a map information from a
database to widgets on a form.
\image sql-widget-mapper.png
\borderedimage sql-widget-mapper.png
In the \l{Combo Widget Mapper Example}, we showed how to use a named
mapping between a widget mapper and a QComboBox widget with a special
@ -74,7 +74,7 @@
including values for the address types that correspond to the address
types are stored in a separate table.
\image widgetmapper-sql-mapping-table.png
\borderedimage widgetmapper-sql-mapping-table.png
We create an "addresstype" table containing the identifiers used in the
"person" table and the corresponding strings:
@ -93,7 +93,7 @@
used wherever the "typeid" is presented to the user. (See the
QSqlRelationalTableModel::setRelation() documentation for details.)
\image widgetmapper-sql-mapping.png
\borderedimage widgetmapper-sql-mapping.png
The constructor of the \c Window class can be explained in three parts.
In the first part, we set up the model used to hold the data, then we set

View File

@ -33,5 +33,5 @@
\brief The Table Model example shows how to use a specialized SQL table model with table
views to edit information in a database.
\image tablemodel-example.png
\borderedimage tablemodel-example.png
*/