diff options
Diffstat (limited to 'examples/widgets/tutorials/modelview/5_edit/mymodel.cpp')
-rw-r--r-- | examples/widgets/tutorials/modelview/5_edit/mymodel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp b/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp index 317c4760fb..0a2c301f9c 100644 --- a/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp +++ b/examples/widgets/tutorials/modelview/5_edit/mymodel.cpp @@ -77,14 +77,14 @@ bool MyModel::setData(const QModelIndex & index, const QVariant & value, int rol { //save value from editor to member m_gridData m_gridData[index.row()][index.column()] = value.toString(); - //for presentation purposes only: build and emit a joined string + //for presentation purposes only: build and emit a joined string QString result; - for(int row= 0; row < ROWS; row++) - { + for (int row= 0; row < ROWS; row++) + { for(int col= 0; col < COLS; col++) - { - result += m_gridData[row][col] + " "; - } + { + result += m_gridData[row][col] + " "; + } } emit editCompleted( result ); } |