summaryrefslogtreecommitdiffstats
path: root/examples/chat/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/chat/main.cpp')
-rw-r--r--examples/chat/main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/chat/main.cpp b/examples/chat/main.cpp
index 6083b3e..8b59736 100644
--- a/examples/chat/main.cpp
+++ b/examples/chat/main.cpp
@@ -38,12 +38,10 @@ int main(int argc, char *argv[])
widget.resize(QSize(320, 480));
widget.scene()->setSceneRect(0, 0, 320, 480);
- //QtListController *controller = new QtListController(&widget);
QtKineticListController *controller = new QtKineticListController(&widget);
- //controller->setView(new ChatView);
- controller->setView(new QtGraphicsListView);
+ controller->setView(new ChatView);
controller->setModel(new ChatModel(controller));
- //controller->setOvershootEnabled(true);
+ controller->setOvershootEnabled(true);
controller->view()->setGeometry(0, 0, 320, 480);
controller->view()->setFlag(QGraphicsItem::ItemClipsChildrenToShape, true);
widget.scene()->addItem(controller->view());