summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/frozencolumn.qdoc
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>2012-09-05 16:53:23 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-11 12:09:47 +0200
commite92c1976a6bc1a73b45f182a72b75d1617f677ca (patch)
tree70c699843b769917c81911b88f0523952be88eb6 /examples/widgets/doc/frozencolumn.qdoc
parentb5c0e0122ca427058f2faea4e196a95bf5457189 (diff)
Fix example includes for qdoc.
Change-Id: Ifa6a99db27ce51529489bf077a839a3107b524d2 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Diffstat (limited to 'examples/widgets/doc/frozencolumn.qdoc')
-rw-r--r--examples/widgets/doc/frozencolumn.qdoc18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/widgets/doc/frozencolumn.qdoc b/examples/widgets/doc/frozencolumn.qdoc
index e97b0ad373..c65ce1d524 100644
--- a/examples/widgets/doc/frozencolumn.qdoc
+++ b/examples/widgets/doc/frozencolumn.qdoc
@@ -26,7 +26,7 @@
****************************************************************************/
/*!
- \example widgets/itemviews/frozencolumn
+ \example itemviews/frozencolumn
\title Frozen Column Example
This example demonstrates how to freeze a column within a QTableView.
@@ -56,7 +56,7 @@
column's geometry. In addition, we reimplement two functions:
\l{QAbstractItemView::}{resizeEvent()} and \l{QTableView::}{moveCursor()}.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.h Widget definition
+ \snippet itemviews/frozencolumn/freezetablewidget.h Widget definition
\note QAbstractItemView is \l{QTableView}'s ancestor.
@@ -72,7 +72,7 @@
vertical scrollbars together so that the frozen column scrolls vertically
with the rest of our table.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp constructor
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp constructor
In the \c init() function, we ensure that the overlay table view
@@ -82,7 +82,7 @@
only visible column is its first column; we hide the others using
\l{QTableView::}{setColumnHidden()}
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp init part1
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp init part1
In terms of the frozen column's z-order, we stack it on top of the
@@ -94,7 +94,7 @@
with the main tableview. Note that we called \c updateFrozenTableGeometry()
to make the column occupy the correct spot.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp init part2
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp init part2
When you resize the frozen column, the same column on the main table view
must resize accordingly, to provide seamless integration. This is
@@ -102,7 +102,7 @@
value from the \l{QHeaderView::}{sectionResized()} signal, emitted by both
the horizontal and vertical header.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp sections
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp sections
Since the width of the frozen column is modified, we adjust the geometry of
the widget accordingly by invoking \c updateFrozenTableGeometry(). This
@@ -112,14 +112,14 @@
\c updateFrozenTableGeometry() after invoking the base class
implementation.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp resize
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp resize
When navigating around the table with the keyboard, we need to ensure that
the current selection does not disappear behind the frozen column. To
synchronize this, we reimplement QTableView::moveCursor() and adjust the
scrollbar positions if needed, after calling the base class implementation.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp navigate
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp navigate
The frozen column's geometry calculation is based on the geometry of the
table underneath, so it always appears in the right place. Using the
@@ -127,7 +127,7 @@
no matter which style is used. We rely on the geometry of the viewport and
headers to set the boundaries for the frozen column.
- \snippet widgets/itemviews/frozencolumn/freezetablewidget.cpp geometry
+ \snippet itemviews/frozencolumn/freezetablewidget.cpp geometry
*/