equal
deleted
inserted
replaced
14 * Description: EAP-MSCHAPv2 password expired note Dialog implementation |
14 * Description: EAP-MSCHAPv2 password expired note Dialog implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 4 % |
19 * %version: 5 % |
20 */ |
20 */ |
21 |
21 |
22 // System includes |
22 // System includes |
23 #include <HbAction> |
23 #include <HbAction> |
24 #include <HbTranslator> |
24 #include <HbTranslator> |
94 |
94 |
95 //Add a new Ok button action |
95 //Add a new Ok button action |
96 HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok_single_dialog"),this); |
96 HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok_single_dialog"),this); |
97 this->addAction(actionOk); |
97 this->addAction(actionOk); |
98 |
98 |
99 //Disconnect action Ok from the default SLOT and connect to |
99 //Connect to a SLOT owned by this class |
100 //a SLOT owned by this class |
|
101 disconnect(actionOk, SIGNAL(triggered()),this, SLOT(close())); |
|
102 bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed())); |
100 bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed())); |
103 Q_ASSERT(connected == true); |
101 Q_ASSERT(connected == true); |
104 |
102 |
105 //Connect the about to close and hide signals, so that we are able to inform |
103 //Connect the about to close and hide signals, so that we are able to inform |
106 //the caller that the dialog was closed |
104 //the caller that the dialog was closed |