equal
deleted
inserted
replaced
25 BtCpUiSettingItem::BtCpUiSettingItem(CpItemDataHelper &itemDataHelper) : |
25 BtCpUiSettingItem::BtCpUiSettingItem(CpItemDataHelper &itemDataHelper) : |
26 CpSettingFormEntryItemData(itemDataHelper) |
26 CpSettingFormEntryItemData(itemDataHelper) |
27 { |
27 { |
28 bool ret(false); |
28 bool ret(false); |
29 loadTranslators(); |
29 loadTranslators(); |
30 mSettingModel = new BtSettingModel(); |
30 mSettingModel = new BtSettingModel(this); |
31 mDeviceModel = new BtDeviceModel(); |
31 mDeviceModel = new BtDeviceModel(this); |
32 |
32 |
33 ret = connect(mSettingModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), |
33 ret = connect(mSettingModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), |
34 this, SLOT(handleDataChanged(QModelIndex,QModelIndex))); |
34 this, SLOT(handleDataChanged(QModelIndex,QModelIndex))); |
35 BTUI_ASSERT_X( ret, "BtCpUiSettingItem::BtCpUiSettingItem", "can't connect dataChanged" ); |
35 BTUI_ASSERT_X( ret, "BtCpUiSettingItem::BtCpUiSettingItem", "can't connect dataChanged" ); |
36 |
36 |
38 updateStatus(); |
38 updateStatus(); |
39 } |
39 } |
40 |
40 |
41 BtCpUiSettingItem::~BtCpUiSettingItem() |
41 BtCpUiSettingItem::~BtCpUiSettingItem() |
42 { |
42 { |
43 delete mSettingModel; |
|
44 delete mDeviceModel; |
|
45 |
|
46 delete mViewTranslator; |
43 delete mViewTranslator; |
47 delete mDialogTranslator; |
44 delete mDialogTranslator; |
48 } |
45 } |
49 |
46 |
50 void BtCpUiSettingItem::loadTranslators() |
47 void BtCpUiSettingItem::loadTranslators() |