equal
deleted
inserted
replaced
18 |
18 |
19 #include "glxforwardtransitionplugin.h" |
19 #include "glxforwardtransitionplugin.h" |
20 |
20 |
21 GlxForwardTransitionPlugin::GlxForwardTransitionPlugin() |
21 GlxForwardTransitionPlugin::GlxForwardTransitionPlugin() |
22 { |
22 { |
23 mEffectFileList.append(QString(":/data/transtionforward.fxml")); |
23 mEffectFileList.append(QString(":/data/view_flip_hide.fxml")); |
24 mEffectFileList.append(QString(":/data/transtion.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; |
25 } |
44 } |
26 |
45 |
27 GlxForwardTransitionPlugin::~GlxForwardTransitionPlugin() |
46 GlxForwardTransitionPlugin::~GlxForwardTransitionPlugin() |
28 { |
47 { |
29 mEffectFileList.clear(); |
48 mEffectFileList.clear(); |