qtmobileextensions/src/keycapture/tsrc/mytestwindowgroup.cpp
changeset 26 3d09643def13
parent 1 2b40d63a9c3d
equal deleted inserted replaced
24:9d760f716ca8 26:3d09643def13
    21  
    21  
    22 
    22 
    23 
    23 
    24 #include "mytestwindowgroup.h"
    24 #include "mytestwindowgroup.h"
    25 
    25 
    26 //MyTestWindowGroup* MyTestWindowGroup::instance = 0;
       
    27 
       
    28 
       
    29 MyTestWindowGroup* MyTestWindowGroup::Instance(){
    26 MyTestWindowGroup* MyTestWindowGroup::Instance(){
    30     //if(instance == NULL)
       
    31     //    instance = new MyTestWindowGroup();
       
    32     static MyTestWindowGroup singleton;
    27     static MyTestWindowGroup singleton;
    33     return &singleton;
    28     return &singleton;
    34 
       
    35     //return instance;
       
    36     }
    29     }
    37 
    30 
    38     MyTestWindowGroup::~MyTestWindowGroup() { 
    31     MyTestWindowGroup::~MyTestWindowGroup() { 
    39         //if(instance) 
    32 
    40         //    delete instance;
       
    41     }
    33     }
    42 
    34 
    43 
    35 
    44 
    36