diff -r 2e2dc3d30ca8 -r 341166945d65 homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidget.cpp --- a/homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidget.cpp Thu Jun 24 13:11:40 2010 +0100 +++ b/homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidget.cpp Fri Jun 25 19:19:22 2010 +0300 @@ -32,6 +32,7 @@ /*! Constructs a widget which is a child of \a parent, with widget flags set to \a flags. */ +// Start of snippet 1 HelloWorldWidget::HelloWorldWidget(QGraphicsItem* parent, Qt::WindowFlags flags) : HbWidget(parent, flags) { @@ -42,6 +43,7 @@ layout->setContentsMargins(0.0, 0.0, 0.0, 0.0); layout->addItem(helloWorld); } +// End of snippet 1 /*! Destructor @@ -53,13 +55,17 @@ /*! Called when widget is shown in the home screen */ +// Start of snippet 2 void HelloWorldWidget::onShow() { } +// End of snippet 2 /*! Called when widget is hidden from the home screen */ +// Start of snippet 3 void HelloWorldWidget::onHide() { } +// End of snippet 3