filemanager/src/filemanager/src/backuprestore/fmrestoreview.cpp
changeset 32 39cf9ced4cc4
parent 25 b7bfdea70ca2
child 47 12b82dc0e8db
equal deleted inserted replaced
27:df183af6b92f 32:39cf9ced4cc4
    35 
    35 
    36 	initMainWidget();
    36 	initMainWidget();
    37 	initToolBar();
    37 	initToolBar();
    38 	initMenu();  
    38 	initMenu();  
    39 	mOperationService = FmViewManager::viewManager()->operationService();
    39 	mOperationService = FmViewManager::viewManager()->operationService();
    40 
       
    41 	QMetaObject::connectSlotsByName( this );
       
    42 }
    40 }
    43 
    41 
    44 FmRestoreView::~FmRestoreView()
    42 FmRestoreView::~FmRestoreView()
    45 {
    43 {
    46     removeToolBarAction();
    44     removeToolBarAction();
    52     HbAction *action = 0;
    50     HbAction *action = 0;
    53 	action = new HbAction( this );
    51 	action = new HbAction( this );
    54     action->setObjectName( "rotateAction" );
    52     action->setObjectName( "rotateAction" );
    55     action->setText( hbTrId( "Change orientation" ) );
    53     action->setText( hbTrId( "Change orientation" ) );
    56     menu()->addAction( action );
    54     menu()->addAction( action );
       
    55     connect( action, SIGNAL(triggered()), this, SLOT( on_rotateAction_triggered() ), Qt::QueuedConnection );
    57 #endif
    56 #endif
    58 
    57 
    59 	mRestoreAction = new HbAction( this );
    58 	mRestoreAction = new HbAction( this );
    60     mRestoreAction->setObjectName( "restoreAction" );
    59     mRestoreAction->setObjectName( "restoreAction" );
    61     mRestoreAction->setText( hbTrId( "Restore data" ) );
    60     mRestoreAction->setText( hbTrId( "Restore data" ) );
    62     menu()->addAction( mRestoreAction );
    61     menu()->addAction( mRestoreAction );
    63     mRestoreAction->setEnabled(false);
    62     mRestoreAction->setEnabled(false);
       
    63     connect( mRestoreAction, SIGNAL(triggered()), this, SLOT( on_restoreAction_triggered() ), Qt::QueuedConnection );
    64 }
    64 }
    65 
    65 
    66 void FmRestoreView::initMainWidget()
    66 void FmRestoreView::initMainWidget()
    67 {
    67 {
    68 	mRestoreWigdet = new FmRestoreWigdet( this );
    68 	mRestoreWigdet = new FmRestoreWigdet( this );
    76 {
    76 {
    77 	mLeftAction = new HbAction( this );
    77 	mLeftAction = new HbAction( this );
    78     mLeftAction->setObjectName( "leftAction" );
    78     mLeftAction->setObjectName( "leftAction" );
    79     mLeftAction->setText( hbTrId( "Restore" ) );
    79     mLeftAction->setText( hbTrId( "Restore" ) );
    80     toolBar()->addAction( mLeftAction );
    80     toolBar()->addAction( mLeftAction );
       
    81     connect( mLeftAction, SIGNAL(triggered()), this, SLOT( on_leftAction_triggered() ), Qt::QueuedConnection );
       
    82 
    81     mLeftAction->setEnabled(false);
    83     mLeftAction->setEnabled(false);
    82     toolBar()->setOrientation( Qt::Horizontal );
    84     toolBar()->setOrientation( Qt::Horizontal );
    83 }
    85 }
    84 
    86 
    85 void FmRestoreView::on_leftAction_triggered()
    87 void FmRestoreView::on_leftAction_triggered()