ui/views/effectengine/effectplugin/src/glxfadeplugin.cpp
changeset 36 6481344a6d67
parent 33 1ee2af37811f
child 39 2b8fc9e8d167
child 48 d0b4e67b3a60
equal deleted inserted replaced
33:1ee2af37811f 36:6481344a6d67
     1 /*
       
     2 * Copyright (c) 2009 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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "glxfadeplugin.h"
       
    20 
       
    21 GlxFadePlugin::GlxFadePlugin() : mItem(NULL)
       
    22 {
       
    23     mEffectFileList.append(QString(":/data/opacity_deactivate.fxml"));
       
    24     mEffectFileList.append(QString(":/data/opacity_activate.fxml"));
       
    25 }
       
    26 
       
    27 void GlxFadePlugin::setUpItems( QList< QGraphicsItem * > &  items )
       
    28 {
       
    29     if ( items.count() < 2 ) 
       
    30         return;
       
    31     
       
    32     mItem = items.at(1);
       
    33     //mItem->hide();
       
    34     mItem->setPos(0,0);
       
    35     items.at(0)->setPos(0,0);
       
    36 }
       
    37 
       
    38 bool GlxFadePlugin::isAnimationLater(int index) 
       
    39 {
       
    40     /*if ( index == 1) {
       
    41         return true;
       
    42     }*/
       
    43     return false;
       
    44 }
       
    45 
       
    46 GlxFadePlugin::~GlxFadePlugin()
       
    47 {
       
    48     mEffectFileList.clear();
       
    49 }
       
    50