aboutsummaryrefslogtreecommitdiffstats
path: root/doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp')
-rw-r--r--doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp b/doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp
index b1d14de07..743df7858 100644
--- a/doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp
+++ b/doc/codesnippets/examples/sql/querymodel/editablesqlmodel.cpp
@@ -68,9 +68,9 @@ def setData(self, index, value, role):
ok = False
if index.column() == 1:
- ok = self.setFirstName(id, value.toString())
+ ok = self.setFirstName(id, value)
else:
- ok = self.setLastName(id, value.toString())
+ ok = self.setLastName(id, value)
self.refresh()
return ok
}