diff -r 32e56106abf2 -r 66b5fe3c07fd homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/src/testwidget.cpp --- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/src/testwidget.cpp Mon Sep 27 11:52:00 2010 +0300 +++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/src/testwidget.cpp Wed Oct 06 16:06:24 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2009 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" @@ -18,28 +18,52 @@ #include #include "testwidget.h" +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// TestWidget::TestWidget(QGraphicsItem *parent, Qt::WindowFlags flags) : HbWidget(parent, flags) { setPreferredSize(100, 100); } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// TestWidget::~TestWidget() { } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// void TestWidget::onInitialize() { } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// void TestWidget::onShow() { } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// void TestWidget::onHide() { } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// void TestWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) { Q_UNUSED(option) @@ -47,11 +71,19 @@ painter->drawRect(rect()); } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// QRectF TestWidget::boundingRect() const { return rect(); } +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// QPainterPath TestWidget::shape() const { QPainterPath path;