videocollection/tsrc/stubs/src/hbdialog.cpp
changeset 46 adbe7d5ba2f5
parent 17 69946d1824c4
child 65 a9d57bd8d7b7
equal deleted inserted replaced
28:c48470be1ba7 46:adbe7d5ba2f5
    22 
    22 
    23 HbDialog *HbDialog::currentInstance = 0;
    23 HbDialog *HbDialog::currentInstance = 0;
    24 bool HbDialog::execReturnPrimary = true;
    24 bool HbDialog::execReturnPrimary = true;
    25 bool HbDialog::primaryReturnNull = false;
    25 bool HbDialog::primaryReturnNull = false;
    26 bool HbDialog::secondaryReturnNull = false;
    26 bool HbDialog::secondaryReturnNull = false;
       
    27 int HbDialog::openAmount = 0;
    27 
    28 
    28 HbDialog::HbDialog(QGraphicsItem *parent) :
    29 HbDialog::HbDialog(QGraphicsItem *parent) :
    29 HbWidget(parent),
    30 HbWidget(parent),
    30 mHeadingWidget(0),
    31 mHeadingWidget(0),
    31 mContentWidget(0),
    32 mContentWidget(0),
    48     mActions.clear();
    49     mActions.clear();
    49 }
    50 }
    50 
    51 
    51 void HbDialog::open( QObject* receiver, const char* member)
    52 void HbDialog::open( QObject* receiver, const char* member)
    52 {
    53 {
       
    54     openAmount++;
    53     if(receiver && member)
    55     if(receiver && member)
    54     {
    56     {
    55         connect(this, SIGNAL(finished(HbAction*)), receiver, SLOT(member));
    57         connect(this, SIGNAL(finished(HbAction*)), receiver, SLOT(member));
    56     }
    58     }
    57     if(execReturnPrimary)
    59     if(execReturnPrimary)