filemanager/src/filemanager/src/backuprestore/fmdeletebackupview.cpp
changeset 16 ada7962b4308
parent 14 1957042d8c7e
child 18 edd66bde63a4
child 25 b7bfdea70ca2
child 37 15bc28c9dd51
equal deleted inserted replaced
14:1957042d8c7e 16:ada7962b4308
    31 
    31 
    32 
    32 
    33 
    33 
    34 FmDeleteBackupView::FmDeleteBackupView() : FmViewBase( EDeleteBackupView )
    34 FmDeleteBackupView::FmDeleteBackupView() : FmViewBase( EDeleteBackupView )
    35 {
    35 {
    36 	setTitle( tr( "Delete Backup" ) );
    36 	setTitle( hbTrId( "Delete Backup" ) );
    37 
    37 
    38 	initMainWidget();
    38 	initMainWidget();
    39 	initToolBar();
    39 	initToolBar();
    40 	initMenu();
    40 	initMenu();
    41     adjustActions();
    41     adjustActions();
    53 {
    53 {
    54 #ifdef FM_CHANGE_ORIENT_ENABLE
    54 #ifdef FM_CHANGE_ORIENT_ENABLE
    55     HbAction *action = 0;
    55     HbAction *action = 0;
    56 	action = new HbAction( this );
    56 	action = new HbAction( this );
    57     action->setObjectName( "rotateAction" );
    57     action->setObjectName( "rotateAction" );
    58     action->setText( tr( "Change orientation" ) );
    58     action->setText( hbTrId( "Change orientation" ) );
    59     menu()->addAction( action );
    59     menu()->addAction( action );
    60 #endif
    60 #endif
    61 
    61 
    62 	mDeleteAction = new HbAction( this );
    62 	mDeleteAction = new HbAction( this );
    63     mDeleteAction->setObjectName( "deleteAction" );
    63     mDeleteAction->setObjectName( "deleteAction" );
    64     mDeleteAction->setText( tr( "Delete backups" ) );
    64     mDeleteAction->setText( hbTrId( "Delete backups" ) );
    65     menu()->addAction( mDeleteAction );
    65     menu()->addAction( mDeleteAction );
    66 }
    66 }
    67 
    67 
    68 void FmDeleteBackupView::initMainWidget()
    68 void FmDeleteBackupView::initMainWidget()
    69 {
    69 {
    75 
    75 
    76 void FmDeleteBackupView::initToolBar()
    76 void FmDeleteBackupView::initToolBar()
    77 {
    77 {
    78 	mLeftAction = new HbAction( this );
    78 	mLeftAction = new HbAction( this );
    79     mLeftAction->setObjectName( "leftAction" );
    79     mLeftAction->setObjectName( "leftAction" );
    80     mLeftAction->setText( tr( "delete" ) );
    80     mLeftAction->setText( hbTrId( "delete" ) );
    81     toolBar()->addAction( mLeftAction );
    81     toolBar()->addAction( mLeftAction );
    82     
    82     
    83     toolBar()->setOrientation( Qt::Horizontal );
    83     toolBar()->setOrientation( Qt::Horizontal );
    84 
    84 
    85     //action = new HbAction( this );
    85     //action = new HbAction( this );