ui/viewutilities/effectplugin/src/glxflipeffectplugin.cpp
author hgs
Fri, 25 Jun 2010 15:41:33 +0530
changeset 45 863223ea6961
parent 43 72396548277c
child 54 0f0f3f26f787
permissions -rw-r--r--
201025

/*
* 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"
* 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:   ?Description
*
*/


#include "glxflipeffectplugin.h"
#include "glxuistd.h"

GlxFlipEffectPlugin::GlxFlipEffectPlugin() : GlxEffectPluginBase( FLIP_EFFECT )
{
    mEffectFileList.append(QString(":/data/uphide.fxml"));
    mEffectFileList.append(QString(":/data/downshow.fxml"));
}

void GlxFlipEffectPlugin::setUpItems( QList< QGraphicsItem * > &  items )
{
    if ( items.count() < 2 ) 
        return;
   
    items.at(0)->setPos(0,0);
    items.at(1)->setPos(0,0);
}

QString GlxFlipEffectPlugin::effectName() 
{ 
    return ( "FLip" ) ; 
}

GlxFlipEffectPlugin::~GlxFlipEffectPlugin()
{
    mEffectFileList.clear();
}