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 "glxforwardtransitionplugin.h" |
|
20 |
|
21 GlxForwardTransitionPlugin::GlxForwardTransitionPlugin() |
|
22 { |
|
23 mEffectFileList.append(QString(":/data/view_flip_hide.fxml")); |
|
24 mEffectFileList.append(QString(":/data/view_flip_show.fxml")); |
|
25 } |
|
26 |
|
27 void GlxForwardTransitionPlugin::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 GlxForwardTransitionPlugin::isAnimationLater(int index) |
|
39 { |
|
40 if ( index == 1) { |
|
41 return true; |
|
42 } |
|
43 return false; |
|
44 } |
|
45 |
|
46 GlxForwardTransitionPlugin::~GlxForwardTransitionPlugin() |
|
47 { |
|
48 mEffectFileList.clear(); |
|
49 } |
|
50 |
|
51 |
|