summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview/3_changingmodel
diff options
context:
space:
mode:
authorMichael D Scull <ext-michael.scull@nokia.com>2010-06-23 15:19:49 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-07-07 15:10:04 (GMT)
commitca10c2c5a8190cac9c2ae0526f2e250add09d6f2 (patch)
treeb139acbf3f7a5cfd25a9980f78324ff6abeca27a /examples/tutorials/modelview/3_changingmodel
parent6de484f195366b560e10f95b04d2f0e7303a2b63 (diff)
downloadQt-ca10c2c5a8190cac9c2ae0526f2e250add09d6f2.zip
Qt-ca10c2c5a8190cac9c2ae0526f2e250add09d6f2.tar.gz
Qt-ca10c2c5a8190cac9c2ae0526f2e250add09d6f2.tar.bz2
correction of snippet tags
Diffstat (limited to 'examples/tutorials/modelview/3_changingmodel')
-rwxr-xr-xexamples/tutorials/modelview/3_changingmodel/mymodel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/tutorials/modelview/3_changingmodel/mymodel.cpp b/examples/tutorials/modelview/3_changingmodel/mymodel.cpp
index d594175..fa7f566 100755
--- a/examples/tutorials/modelview/3_changingmodel/mymodel.cpp
+++ b/examples/tutorials/modelview/3_changingmodel/mymodel.cpp
@@ -3,7 +3,7 @@
#include <QBrush>
#include "mymodel.h"
-
+//! [quoting mymodel_a]
MyModel::MyModel(QObject *parent)
:QAbstractTableModel(parent)
{
@@ -13,7 +13,7 @@ MyModel::MyModel(QObject *parent)
connect(timer, SIGNAL(timeout()) , this, SLOT(timerHit()) );
timer->start();
}
-
+//! [quoting mymodel_a]
//-------------------------------------------------------
int MyModel::rowCount(const QModelIndex & /*parent */ ) const
{
@@ -43,6 +43,7 @@ QVariant MyModel::data(const QModelIndex &index, int role ) const
}
//-------------------------------------------------------
+//! [quoting mymodel_b ]
void MyModel::timerHit()
{
//we identify the top left cell
@@ -50,4 +51,4 @@ void MyModel::timerHit()
//emit a signal to make the view reread identified data
emit dataChanged ( topLeft, topLeft );
}
-
+//! [quoting mymodel_b ]