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() |