ganeswidgets/src/hgcenteritemarea.cpp
branchGCC_SURGE
changeset 10 c348b9772569
parent 5 4fa04caf0f43
equal deleted inserted replaced
4:463f1934e292 10:c348b9772569
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <QGraphicsSceneResizeEvent>
       
    19 #include "hgcenteritemarea.h"
       
    20 #include "trace.h"
       
    21 
       
    22 HgCenterItemArea::HgCenterItemArea(QGraphicsItem* parent) :
       
    23     HbWidget(parent)
       
    24 {
       
    25     FUNC_LOG;
       
    26 }
       
    27 
       
    28 HgCenterItemArea::~HgCenterItemArea()
       
    29 {
       
    30     FUNC_LOG;
       
    31 }
       
    32 
       
    33 void HgCenterItemArea::resizeEvent(QGraphicsSceneResizeEvent *event)
       
    34 {
       
    35     FUNC_LOG;
       
    36     INFO("HgCenterItemArea: size:" << size() << event->newSize());
       
    37 
       
    38     HbWidget::resizeEvent(event);
       
    39     emit geometryChanged();
       
    40 }
       
    41 
       
    42 void HgCenterItemArea::moveEvent(QGraphicsSceneMoveEvent *event)
       
    43 {
       
    44     HbWidget::moveEvent(event);
       
    45     emit geometryChanged();
       
    46 }
       
    47 
       
    48