ui/viewutilities/effectplugin/src/glxflipeffectplugin.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 14:16:16 +0300
changeset 49 f291796e213d
parent 36 6481344a6d67
child 54 0f0f3f26f787
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* 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();
}