equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * The source file of filemanager view base |
|
16 * |
|
17 */ |
|
18 |
|
19 #include "fmviewbase.h" |
|
20 #include "fmviewmanager.h" |
|
21 |
|
22 #include <hbaction.h> |
|
23 |
|
24 FmViewBase::FmViewBase( TViewType viewType ) |
|
25 { |
|
26 mViewType = viewType; |
|
27 init(); |
|
28 QMetaObject::connectSlotsByName( this ); |
|
29 } |
|
30 |
|
31 FmViewBase::~FmViewBase(void) |
|
32 { |
|
33 } |
|
34 |
|
35 void FmViewBase::init() |
|
36 { |
|
37 mBackAction = new HbAction( Hb::BackNaviAction, this ); |
|
38 mBackAction->setObjectName( "backAction" ); |
|
39 setNavigationAction( mBackAction ); |
|
40 } |
|
41 |
|
42 void FmViewBase::on_backAction_triggered() |
|
43 { |
|
44 FmViewManager::viewManager()->popViewAndShow(); |
|
45 } |
|
46 |
|