homescreenapp/hsdomainmodel/src/hswidgetcomponentregistry.cpp
changeset 69 87476091b3f5
parent 62 341166945d65
child 81 7dd137878ff8
equal deleted inserted replaced
67:474929a40a0f 69:87476091b3f5
    23 #include "caservice.h"
    23 #include "caservice.h"
    24 #include "caquery.h"
    24 #include "caquery.h"
    25 #include "caentry.h" 
    25 #include "caentry.h" 
    26 #include "cadefs.h"
    26 #include "cadefs.h"
    27 #include "canotifier.h"
    27 #include "canotifier.h"
    28 #include "hsscene.h"
       
    29 
    28 
    30 #include <QSignalMapper>
    29 #include <QSignalMapper>
    31 #include <QDir>
    30 #include <QDir>
    32 #include <QCoreApplication>
    31 #include <QCoreApplication>
    33 
    32 
    34 #include <HbMainWindow>
    33 //#include <HbMainWindow>
    35 
    34 
    36 /*!
    35 /*!
    37     \class HsWidgetComponentRegistry
    36     \class HsWidgetComponentRegistry
    38     \ingroup group_hsdomainmodel
    37     \ingroup group_hsdomainmodel
    39     \brief Homescreen widget component registry.
    38     \brief Homescreen widget component registry.
    56 */
    55 */
    57 HsWidgetComponentRegistry* HsWidgetComponentRegistry::instance()
    56 HsWidgetComponentRegistry* HsWidgetComponentRegistry::instance()
    58 {
    57 {
    59     if (!mInstance) {
    58     if (!mInstance) {
    60         mInstance = new HsWidgetComponentRegistry;
    59         mInstance = new HsWidgetComponentRegistry;
    61         mInstance->setParent(HsScene::mainWindow());
    60         mInstance->setParent(QCoreApplication::instance());
    62     }
    61     }
    63     return mInstance;
    62     return mInstance;
    64 }
    63 }
    65 
    64 
    66 /*!
    65 /*!