securitysettings/eapqtdialogs/src/eapfastprovnotsuccessnotedialog.cpp
changeset 52 c23bdf5a328a
parent 48 432fb2364cb8
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    14 * Description: EAP-FAST Provisioning not successfull note Dialog implementation
    14 * Description: EAP-FAST Provisioning not successfull note Dialog implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 5 %
    19 * %version: 6 %
    20 */
    20 */
    21 
    21 
    22 // System includes
    22 // System includes
    23 #include <HbAction>
    23 #include <HbAction>
    24 #include <HbTranslator>
    24 #include <HbTranslator>
    93     
    93     
    94     //Add a new Ok button action 
    94     //Add a new Ok button action 
    95     HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok_single_dialog"),this); 
    95     HbAction* actionOk = new HbAction(hbTrId("txt_common_button_ok_single_dialog"),this); 
    96     this->addAction(actionOk);
    96     this->addAction(actionOk);
    97     
    97     
    98     //Disconnect action Ok from the default SLOT and connect to 
    98     //Connect to a SLOT owned by this class  
    99     //a SLOT owned by this class  
       
   100     disconnect(actionOk, SIGNAL(triggered()),this, SLOT(close()));
       
   101     bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed()));
    99     bool connected = connect(actionOk, SIGNAL(triggered()), this, SLOT(okPressed()));
   102     Q_ASSERT(connected == true);
   100     Q_ASSERT(connected == true);
   103         
   101         
   104     // Connect the about to close and hide signals, so that we are able to inform 
   102     // Connect the about to close and hide signals, so that we are able to inform 
   105     // the caller that the dialog was closed    
   103     // the caller that the dialog was closed