| Home · All Namespaces · All Classes |
00001 /*************************************************************************** 00002 ** 00003 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00004 ** All rights reserved. 00005 ** Contact: Nokia Corporation (directui@nokia.com) 00006 ** 00007 ** This file is part of mhome. 00008 ** 00009 ** If you have questions regarding the use of this file, please contact 00010 ** Nokia at directui@nokia.com. 00011 ** 00012 ** This library is free software; you can redistribute it and/or 00013 ** modify it under the terms of the GNU Lesser General Public 00014 ** License version 2.1 as published by the Free Software Foundation 00015 ** and appearing in the file LICENSE.LGPL included in the packaging 00016 ** of this file. 00017 ** 00018 ****************************************************************************/ 00019 00020 #include "home.h" 00021 #include "desktop.h" 00022 #include "mainwindow.h" 00023 #include <mstatusbar.h> 00024 #include <QGraphicsLinearLayout> 00025 00026 #include <MWidgetCreator> 00027 M_REGISTER_WIDGET(Home) 00028 00029 Home::Home(QGraphicsItem *parent) : 00030 MSceneWindow(parent), 00031 statusBar(new MStatusBar), 00032 desktop(new Desktop) 00033 { 00034 setObjectName("Home"); 00035 00036 // Show the status bar 00037 statusBar->appear(); 00038 00039 // Use the desktop as the central widget 00040 QGraphicsLinearLayout *layout = new QGraphicsLinearLayout(Qt::Vertical); 00041 layout->setContentsMargins(0, 0, 0, 0); 00042 layout->addItem(desktop); 00043 setLayout(layout); 00044 } 00045 00046 Home::~Home() 00047 { 00048 } 00049 00050 QRectF Home::boundingRect() const 00051 { 00052 return desktop->boundingRect(); 00053 }
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:20:42 Doxygen 1.7.1 |
MeeGo Touch |