diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-01-13 15:48:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-13 22:46:50 +0100 |
commit | 882bf3475c8926abe62ed71e6719458b024caac0 (patch) | |
tree | f227c1c660776da1ece9149b1c9e3ca5b27d8687 /examples/widgets/tutorials | |
parent | 81157d23749f6ee1feef35a04fa9cc989ebc01eb (diff) |
expand tabs and related whitespace fixes in *.{cpp,h,qdoc}
the diff -w for this commit is empty.
Started-by: Thiago Macieira <thiago.macieira@intel.com>
Change-Id: I77bb84e71c63ce75e0709e5b94bee18e3ce6ab9e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'examples/widgets/tutorials')
-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 ); } |