equal
deleted
inserted
replaced
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) |