diff -r 30f14686fb04 -r 2b1b11a301d2 homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidget.cpp --- a/homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidget.cpp Wed Jun 23 18:03:36 2010 +0300 +++ b/homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidget.cpp Tue Jul 06 14:06:53 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