diff options
author | Geir Vattekar <geir.vattekar@nokia.com> | 2012-09-07 11:58:34 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-18 20:59:03 +0200 |
commit | 8347d4e0bd922e3088ef2d08a47e08bdeff1ab4e (patch) | |
tree | d8260c5391e56c32a061700234dab3aca8d6a52e /examples/widgets/doc | |
parent | ab1f00f6cdbe5f077abfddd5dc512dee09dbaf15 (diff) |
Doc: Use QStyledItemDelegate and frameless spinboxes in spinbox delegate example
Task-number: QTBUG-18847
Change-Id: I5347a1028b6f45a60e43fb75f6d362efecb6880b
Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: Marius Bugge Monsen <marius@cutehacks.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
Diffstat (limited to 'examples/widgets/doc')
-rw-r--r-- | examples/widgets/doc/spinboxdelegate.qdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/doc/spinboxdelegate.qdoc b/examples/widgets/doc/spinboxdelegate.qdoc index 95e764dd83..258811cc4c 100644 --- a/examples/widgets/doc/spinboxdelegate.qdoc +++ b/examples/widgets/doc/spinboxdelegate.qdoc @@ -68,7 +68,7 @@ \snippet itemviews/spinboxdelegate/delegate.cpp 0 - Since the delegate is a subclass of QItemDelegate, the data it retrieves + Since the delegate is a subclass of QStyledItemDelegate, the data it retrieves from the model is displayed in a default style, and we do not need to provide a custom \c paintEvent(). @@ -122,7 +122,7 @@ The table view is informed about the delegate, and will use it to display each of the items. Since the delegate is a subclass of - QItemDelegate, each cell in the table will be rendered using standard + QStyledItemDelegate, each cell in the table will be rendered using standard painting operations. We insert some arbitrary data into the model for demonstration purposes: |