summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/code
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@theqtcompany.com>2016-08-01 12:37:21 +0200
committerTopi Reiniรถ <topi.reinio@theqtcompany.com>2016-08-12 08:30:48 +0000
commita825e1ed0d4d5ac8d26142037ba475430d33eabd (patch)
treec8a1f3c79cf82f4b26bb26c0c9b9eb5efb16c588 /src/widgets/doc/snippets/code
parenta2ae631c04fee752e492f2c0b8fd25f06abffd6b (diff)
Doc: Fix incorrect arguments in QTableWidget::setCellWidget() snippet
Task-number: QTWEBSITE-722 Change-Id: I15fc2b3e035c48272bbd00edbf227ef5a942597f Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/code')
-rw-r--r--src/widgets/doc/snippets/code/src_gui_itemviews_qtablewidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/doc/snippets/code/src_gui_itemviews_qtablewidget.cpp b/src/widgets/doc/snippets/code/src_gui_itemviews_qtablewidget.cpp
index 39c8427cce..f76bee1bbb 100644
--- a/src/widgets/doc/snippets/code/src_gui_itemviews_qtablewidget.cpp
+++ b/src/widgets/doc/snippets/code/src_gui_itemviews_qtablewidget.cpp
@@ -39,7 +39,7 @@
****************************************************************************/
//! [0]
-setCellWidget(index, new QLineEdit);
+setCellWidget(row, column, new QLineEdit);
...
-setCellWidget(index, new QTextEdit);
+setCellWidget(row, column, new QTextEdit);
//! [0]