homescreenapp/examples/helloworldwidgetplugin/helloworldwidgetplugin/src/helloworldwidget.cpp
--- a/homescreenapp/examples/helloworldwidgetplugin/helloworldwidgetplugin/src/helloworldwidget.cpp Mon May 03 12:24:59 2010 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-/*
-* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description: Example of home screen widget
-*
-*/
-
-#include <QGraphicsLinearLayout>
-#include <HbLabel>
-#include "helloworldwidget.h"
-
-/*!
- \ingroup group_helloworld_widget
- \class HelloWorldWidget
- \brief Example implementation for home screen widget.
-
- HelloWorldWidget derived from the HbWidget and implements
- needed functions for the home screen widget.
-*/
-
-/*!
- Constructs a widget which is a child of \a parent, with widget flags set to \a flags.
-*/
-HelloWorldWidget::HelloWorldWidget(QGraphicsItem* parent, Qt::WindowFlags flags)
- : HbWidget(parent, flags)
-{
- QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(Qt::Vertical);
- setLayout(layout);
- HbLabel *helloWorld = new HbLabel("Hello World!");
- helloWorld->setPreferredSize(QSizeF(130.0,20.0));
- layout->setContentsMargins(0.0, 0.0, 0.0, 0.0);
- layout->addItem(helloWorld);
-}
-
-/*!
- Destructor
-*/
-HelloWorldWidget::~HelloWorldWidget()
-{
-
-}
-
-/*!
- Return bounding rect
-*/
-QRectF HelloWorldWidget::boundingRect() const
-{
- return childrenBoundingRect();
-}
-
-/*!
- Return shape
-*/
-QPainterPath HelloWorldWidget::shape() const
-{
- QPainterPath path;
- path.addRect(boundingRect());
- return path;
-}
-
-/*!
- Called when widget is shown in the home screen
-*/
-void HelloWorldWidget::onShow()
-{
-}
-
-/*!
- Called when widget is hidden from the home screen
-*/
-void HelloWorldWidget::onHide()
-{
-}