notes/tsrc/unittest_noteseditor/src/main.cpp
changeset 45 b6db4fd4947b
parent 18 c198609911f9
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
       
     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 *
       
    16 */
       
    17 
       
    18 // System includes
       
    19 #include <QTest>
       
    20 #include <HbApplication>
       
    21 
       
    22 // User includes
       
    23 #include "unittest_noteseditor.h"
       
    24 
       
    25 int main(int argc, char *argv[])
       
    26 {
       
    27 	HbApplication app(argc, argv);
       
    28 	TestNotesEditor tc;
       
    29 	int ret = QTest::qExec(&tc, argc, argv);
       
    30 	// Core dump if HbIconLoader instance is not destroyed before the 
       
    31 	// application instance. HbIconLoader uses QCoreApplication::aboutToQuit() 
       
    32 	// signal to destroy itself. app.exec() where the signal is normally emitted
       
    33 	// is not called here. So, invoking the signal explicitly.
       
    34 	QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection);
       
    35 	return ret;
       
    36 }
       
    37 
       
    38 // End of file	--Don't remove this.