summaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/doc/src/snippets
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-03 14:24:19 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-01-03 14:24:52 -0200
commitea83c5e554e3901702135d07e9d03ec758bd56ae (patch)
tree4b3884cec70ef4cc9debe88c34bdad13b83214f5 /doc/codesnippets/doc/src/snippets
parentf9587fcad277a6d55afe1aee04759a273a632fe9 (diff)
downloadpyside-ea83c5e554e3901702135d07e9d03ec758bd56ae.tar.gz
pyside-ea83c5e554e3901702135d07e9d03ec758bd56ae.tar.xz
pyside-ea83c5e554e3901702135d07e9d03ec758bd56ae.zip
Fix bug#577 - "Reference to QString in docs"
Diffstat (limited to 'doc/codesnippets/doc/src/snippets')
-rw-r--r--doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qstandarditemmodel.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qstandarditemmodel.cpp b/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qstandarditemmodel.cpp
index 8086919..b7f91e0 100644
--- a/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qstandarditemmodel.cpp
+++ b/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qstandarditemmodel.cpp
@@ -2,7 +2,7 @@
model = QStandardItemModel (4, 4)
for row in range(4):
for column in range(4):
- item = QStandardItem(QString("row %0, column %1").arg(row).arg(column))
+ item = QStandardItem("row %d, column %d" % (row, column))
model.setItem(row, column, item)
//! [0]
@@ -11,7 +11,7 @@ for row in range(4):
model = QStandardItemModel()
parentItem = model.invisibleRootItem()
for i in range(4):
- item = QStandardItem(QString("item %0").arg(i))
+ item = QStandardItem("item %d" % i)
parentItem.appendRow(item)
parentItem = item
//! [1]
@@ -20,8 +20,7 @@ for i in range(4):
//! [2]
treeView = QTreeView(self)
treeView.setModel(myStandardItemModel)
-connect(treeView, SIGNAL('clicked(QModelIndex)')
- this, SLOT('clicked(QModelIndex)'))
+treeView.clicked[QModelIndex].connect(self.clicked)
//! [2]