perfapps/perfmon/ui/hb/app/src/settingsview.cpp
changeset 53 819e59dfc032
parent 51 b048e15729d6
equal deleted inserted replaced
52:36d60d12b4af 53:819e59dfc032
    79 
    79 
    80     // Set created model to form
    80     // Set created model to form
    81     mSettingsForm->setModel(mModel);
    81     mSettingsForm->setModel(mModel);
    82     setWidget(mSettingsForm);
    82     setWidget(mSettingsForm);
    83 
    83 
    84 
       
    85     connect(actionOk, SIGNAL(triggered()), this, SLOT(accept()));
    84     connect(actionOk, SIGNAL(triggered()), this, SLOT(accept()));
    86     connect(actionCancel, SIGNAL(triggered()), this, SLOT(reject()));
    85     connect(actionCancel, SIGNAL(triggered()), this, SLOT(reject()));
    87     connect(this, SIGNAL(aboutToClose()), this, SLOT(accept()));
       
    88 
       
    89 }
    86 }
    90 
    87 
    91 void SettingsView::createModel(HbDataFormModel &model)
    88 void SettingsView::createModel(HbDataFormModel &model)
    92 {
    89 {
    93     // General page
    90     // General page
   272     emit finished(true);
   269     emit finished(true);
   273 }
   270 }
   274 
   271 
   275 void SettingsView::reject()
   272 void SettingsView::reject()
   276 {
   273 {
       
   274     load(mEngine.settings());
   277     emit finished(false);
   275     emit finished(false);
   278 }
   276 }