equal
deleted
inserted
replaced
14 * Description: EAP Challenge query Dialog implementation |
14 * Description: EAP Challenge query 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 <HbLabel> |
23 #include <HbLabel> |
24 #include <HbAction> |
24 #include <HbAction> |
123 |
123 |
124 //Add a new Ok button action |
124 //Add a new Ok button action |
125 HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok"),this); |
125 HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok"),this); |
126 this->addAction(actionOk); |
126 this->addAction(actionOk); |
127 |
127 |
128 //Disconnect action Ok from the default SLOT and connect to |
128 //Connect to a SLOT owned by this class |
129 //a SLOT owned by this class |
|
130 disconnect(actionOk, SIGNAL(triggered()),this, SLOT(close())); |
|
131 bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed())); |
129 bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed())); |
132 Q_ASSERT(connected == true); |
130 Q_ASSERT(connected == true); |
133 |
131 |
134 // Connect the about to close and hide signals, so that we are able to inform |
132 // Connect the about to close and hide signals, so that we are able to inform |
135 // the caller that the dialog was closed |
133 // the caller that the dialog was closed |