homescreenapp/examples/helloworldwidgetplugin/helloworldwidgetplugin/src/helloworldwidget.cpp
changeset 46 23b5d6a29cce
parent 39 4e8ebe173323
child 48 11a8fa9275d5
child 51 4785f57bf3d4
--- 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()
-{
-}