phoneuis/bubblemanager2/tsrc/bubbletest2/main.cpp
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     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:  Animated icon.
       
    15 *
       
    16 */
       
    17 
       
    18 #include <hbapplication.h>
       
    19 #include <hbmainwindow.h>
       
    20 
       
    21 #include "bubbletestview.h"
       
    22 
       
    23 int main(int argc, char *argv[])
       
    24 {
       
    25     // Initialization
       
    26     HbApplication app(argc, argv);
       
    27 
       
    28     // Main window widget. 
       
    29     // Includes decorators such as signal strength and battery life indicator.
       
    30     HbMainWindow mainWindow;
       
    31 
       
    32     // View
       
    33     BubbleTestView *view = new BubbleTestView(mainWindow);
       
    34     mainWindow.addView(view);
       
    35 
       
    36     // Show widget
       
    37     mainWindow.setAttribute( Qt::WA_InputMethodEnabled, false ); 
       
    38     mainWindow.show();
       
    39     
       
    40     mainWindow.scene()->setFocusItem( view );
       
    41 
       
    42     // Enter event loop
       
    43     return app.exec();
       
    44 }