equal
deleted
inserted
replaced
|
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 "glxzoominoutplugin.h" |
|
20 #include "glxuistd.h" |
|
21 |
|
22 GlxZoomInOutEffectPlugin::GlxZoomInOutEffectPlugin() : GlxEffectPluginBase( ZOOM_TO_FACE ) |
|
23 { |
|
24 mEffectFileList.append(QString(":/data/zoomin.fxml")); |
|
25 mEffectFileList.append(QString(":/data/zoomout.fxml")); |
|
26 } |
|
27 |
|
28 void GlxZoomInOutEffectPlugin::setUpItems( QList< QGraphicsItem * > & items ) |
|
29 { |
|
30 if ( items.count() < 2 ) |
|
31 return; |
|
32 |
|
33 mItem = items.at(1); |
|
34 mItem->setPos(0,0); |
|
35 items.at(0)->setPos(0,0); |
|
36 } |
|
37 |
|
38 GlxZoomInOutEffectPlugin::~GlxZoomInOutEffectPlugin() |
|
39 { |
|
40 mEffectFileList.clear(); |
|
41 } |