|
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 * test application for qt control panel public apis. |
|
16 */ |
|
17 |
|
18 #include "mycpbasesettingview.h" |
|
19 |
|
20 /*! |
|
21 \class MyCpBaseSettingView |
|
22 \brief This is a derived class used for protected member functions testing \n |
|
23 */ |
|
24 |
|
25 /*! |
|
26 * public function, only provide a method for QTest to call the protected close() function. \n |
|
27 * directly call close() in base class. |
|
28 */ |
|
29 void MyCpBaseSettingView::close() |
|
30 { |
|
31 CpBaseSettingView::close(); |
|
32 } |
|
33 |
|
34 void MyCpBaseSettingView::testprivate() |
|
35 { |
|
36 MyCpBaseSettingView *p = this; |
|
37 const QMetaObject *mobj = p->metaObject(); |
|
38 CpBaseSettingView::qt_metacall( QMetaObject::InvokeMetaMethod,mobj->indexOfSlot("aboutToClose()"),0); |
|
39 CpBaseSettingView::qt_metacall( QMetaObject::InvokeMetaMethod,mobj->indexOfSlot("_q_softkeyClicked()"),0); |
|
40 CpBaseSettingView::qt_metacall( QMetaObject::InvokeMetaMethod,mobj->indexOfSlot("_q_viewChanged(HbView *view)"),(void**)(&p)); |
|
41 QModelIndex idx; |
|
42 CpBaseSettingView::qt_metacall( QMetaObject::InvokeMetaMethod,mobj->indexOfSlot("_q_itemActivated(const QModelIndex &index)"), ((void **)(&idx)) ); |
|
43 } |