112 |
112 |
113 //Add a new No button action |
113 //Add a new No button action |
114 HbAction* actionNo = new HbAction(hbTrId("txt_common_button_no"),this); |
114 HbAction* actionNo = new HbAction(hbTrId("txt_common_button_no"),this); |
115 this->addAction(actionNo); |
115 this->addAction(actionNo); |
116 |
116 |
117 //Disconnect action Yes from the default SLOT and connect to |
117 //Connect to a SLOT owned by this class |
118 //a SLOT owned by this class |
|
119 disconnect(actionYes, SIGNAL(triggered()),this, SLOT(close())); |
|
120 bool connected = connect(actionYes, SIGNAL(triggered()), this, SLOT(yesPressed())); |
118 bool connected = connect(actionYes, SIGNAL(triggered()), this, SLOT(yesPressed())); |
121 Q_ASSERT(connected == true); |
119 Q_ASSERT(connected == true); |
122 |
120 |
123 //Disconnect action No from the default SLOT and connect to |
121 //Connect to a SLOT owned by this class |
124 //a SLOT owned by this class |
|
125 disconnect(actionNo, SIGNAL(triggered()),this, SLOT(close())); |
|
126 connected = connect(actionNo, SIGNAL(triggered()), this, SLOT(noPressed())); |
122 connected = connect(actionNo, SIGNAL(triggered()), this, SLOT(noPressed())); |
127 Q_ASSERT(connected == true); |
123 Q_ASSERT(connected == true); |
128 |
124 |
129 // Connect the about to close and hide signals, so that we are able to inform |
125 // Connect the about to close and hide signals, so that we are able to inform |
130 // the caller that the dialog was closed |
126 // the caller that the dialog was closed |