43
|
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 "glxfadeeffectplugin.h"
|
|
20 |
#include "glxuistd.h"
|
|
21 |
#include "glxlocalisationstrings.h"
|
|
22 |
|
|
23 |
GlxFadeEffectPlugin::GlxFadeEffectPlugin() : GlxEffectPluginBase( SMOOTH_FADE )
|
|
24 |
{
|
|
25 |
mEffectFileList.append(QString(":/data/opacity_deactivate.fxml"));
|
|
26 |
mEffectFileList.append(QString(":/data/opacity_activate.fxml"));
|
|
27 |
}
|
|
28 |
|
|
29 |
void GlxFadeEffectPlugin::setUpItems( QList< QGraphicsItem * > & items )
|
|
30 |
{
|
|
31 |
if ( items.count() < 2 )
|
|
32 |
return;
|
|
33 |
|
|
34 |
items.at(0)->setPos(0,0);
|
|
35 |
items.at(1)->setPos(0,0);
|
|
36 |
}
|
|
37 |
|
|
38 |
QString GlxFadeEffectPlugin::effectName()
|
|
39 |
{
|
|
40 |
return ( GLX_VAL_SMOOTH_FADE ) ;
|
|
41 |
}
|
|
42 |
|
|
43 |
GlxFadeEffectPlugin::~GlxFadeEffectPlugin()
|
|
44 |
{
|
|
45 |
mEffectFileList.clear();
|
|
46 |
}
|
|
47 |
|