equal
deleted
inserted
replaced
151 { |
151 { |
152 isInternetSelected = false; |
152 isInternetSelected = false; |
153 |
153 |
154 HbCheckBox *checkboxitem = NULL; |
154 HbCheckBox *checkboxitem = NULL; |
155 |
155 |
156 qDeleteAll(mDeviceCheckBoxList.begin(), mDeviceCheckBoxList.end()); |
|
157 |
|
158 mDeviceCheckBoxList.clear(); |
156 mDeviceCheckBoxList.clear(); |
159 |
157 |
160 for (int i = 0; i < mDeviceListDisplay.count(); i++) |
158 for (int i = 0; i < mDeviceListDisplay.count(); i++) |
161 { |
159 { |
162 HbDataFormModelItem* mModelItem = mModel->appendDataFormItem( HbDataFormModelItem::CheckBoxItem); |
160 HbDataFormModelItem* mModelItem = mModel->appendDataFormItem( HbDataFormModelItem::CheckBoxItem); |
406 if (!isInternetSelected) |
404 if (!isInternetSelected) |
407 { |
405 { |
408 for (int i = 0; i < mDeviceCheckBoxList.count(); i++) |
406 for (int i = 0; i < mDeviceCheckBoxList.count(); i++) |
409 { |
407 { |
410 int value; |
408 int value; |
411 (mDeviceCheckBoxList.at(i)->checkState() == Qt::Checked) ? (value = 1) : (value = 0); |
409 (mDeviceCheckBoxList.at(i)->checkState() == Qt::Checked) ? (value = 1) : (value = 0); |
412 |
|
413 appSettings.setValue(mDeviceStoragelist.at(i), value); |
410 appSettings.setValue(mDeviceStoragelist.at(i), value); |
414 |
411 |
415 for (int j = 0; j < mUiLoader->ContentInfoList().count(); j++) |
412 for (int j = 0; j < mUiLoader->ContentInfoList().count(); j++) |
416 { |
413 { |
417 if (mUiLoader->ContentInfoList().at(j)->getDisplayName() == mDeviceStoragelist.at(i)) |
414 if (mUiLoader->ContentInfoList().at(j)->getDisplayName() == mDeviceStoragelist.at(i)) |
|
415 { |
418 value ? (mUiLoader->ContentInfoList().at(j)->setSelected(true)) : (mUiLoader->ContentInfoList().at(j)->setSelected(false)); |
416 value ? (mUiLoader->ContentInfoList().at(j)->setSelected(true)) : (mUiLoader->ContentInfoList().at(j)->setSelected(false)); |
|
417 } |
419 } |
418 } |
420 } |
419 } |
421 } |
420 } |
422 } |
421 } |
423 //---------------------------------------------------------------------------------------------------------------------------- |
422 //---------------------------------------------------------------------------------------------------------------------------- |