ui/views/effectengine/effectplugin/src/glxfadeplugin.cpp
changeset 33 1ee2af37811f
parent 23 74c9f037fd5d
equal deleted inserted replaced
29:2c833fc9e98f 33:1ee2af37811f
    18 
    18 
    19 #include "glxfadeplugin.h"
    19 #include "glxfadeplugin.h"
    20 
    20 
    21 GlxFadePlugin::GlxFadePlugin() : mItem(NULL)
    21 GlxFadePlugin::GlxFadePlugin() : mItem(NULL)
    22 {
    22 {
    23     mEffectFileList.append(QString(":/data/view_flip_hide.fxml"));
    23     mEffectFileList.append(QString(":/data/opacity_deactivate.fxml"));
    24     mEffectFileList.append(QString(":/data/view_flip_show.fxml"));
    24     mEffectFileList.append(QString(":/data/opacity_activate.fxml"));
    25 }
    25 }
    26 
    26 
    27 void GlxFadePlugin::setUpItems( QList< QGraphicsItem * > &  items )
    27 void GlxFadePlugin::setUpItems( QList< QGraphicsItem * > &  items )
    28 {
    28 {
    29     if ( items.count() < 2 ) 
    29     if ( items.count() < 2 ) 
    30         return;
    30         return;
    31     
    31     
    32     mItem = items.at(1);
    32     mItem = items.at(1);
    33     mItem->hide();
    33     //mItem->hide();
    34     mItem->setPos(0,0);
    34     mItem->setPos(0,0);
    35     items.at(0)->setPos(0,0);
    35     items.at(0)->setPos(0,0);
    36 }
    36 }
    37 
    37 
    38 bool GlxFadePlugin::isAnimationLater(int index) 
    38 bool GlxFadePlugin::isAnimationLater(int index) 
    39 {
    39 {
    40     if ( index == 1) {
    40     /*if ( index == 1) {
    41         return true;
    41         return true;
    42     }
    42     }*/
    43     return false;
    43     return false;
    44 }
    44 }
    45 
    45 
    46 GlxFadePlugin::~GlxFadePlugin()
    46 GlxFadePlugin::~GlxFadePlugin()
    47 {
    47 {