summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/modelview/7_selections
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/7_selections
parent6de484f195366b560e10f95b04d2f0e7303a2b63 (diff)
downloadQt-ca10c2c5a8190cac9c2ae0526f2e250add09d6f2.zip
Qt-ca10c2c5a8190cac9c2ae0526f2e250add09d6f2.tar.gz
Qt-ca10c2c5a8190cac9c2ae0526f2e250add09d6f2.tar.bz2
correction of snippet tags
Diffstat (limited to 'examples/tutorials/modelview/7_selections')
-rwxr-xr-xexamples/tutorials/modelview/7_selections/modelview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/tutorials/modelview/7_selections/modelview.cpp b/examples/tutorials/modelview/7_selections/modelview.cpp
index 49c5bb8..eac6df9 100755
--- a/examples/tutorials/modelview/7_selections/modelview.cpp
+++ b/examples/tutorials/modelview/7_selections/modelview.cpp
@@ -1,3 +1,4 @@
+//! [quoting modelview_a]
#include <QTreeView>
#include <QStandardItemModel>
#include <QItemSelectionModel>
@@ -41,8 +42,11 @@ ModelView::ModelView(QWidget *parent)
connect(selectionModel, SIGNAL(selectionChanged ( const QItemSelection & , const QItemSelection & )),
this, SLOT(selectionChangedSlot(const QItemSelection & , const QItemSelection & )));
}
+//! [quoting modelview_a]
//------------------------------------------------------------------------------------
+
+//! [quoting modelview_b]
void ModelView::selectionChangedSlot(const QItemSelection & /*newSelection*/, const QItemSelection & /*oldSelection*/)
{
const QModelIndex index = treeView->selectionModel()->currentIndex();
@@ -58,6 +62,6 @@ void ModelView::selectionChangedSlot(const QItemSelection & /*newSelection*/, co
.arg(hierarchyLevel);
setWindowTitle(showString);
}
-
+//! [quoting modelview_b]