loadgen/ui/hb/src/settingsview.cpp
changeset 53 819e59dfc032
parent 17 4f2773374eff
equal deleted inserted replaced
52:36d60d12b4af 53:819e59dfc032
   101 	loadAttributes();	
   101 	loadAttributes();	
   102 	
   102 	
   103     connect(actionOk, SIGNAL(triggered()), this, SLOT(okExit()));
   103     connect(actionOk, SIGNAL(triggered()), this, SLOT(okExit()));
   104 	connect(actionCancel, SIGNAL(triggered()), this, SLOT(cancelled()));
   104 	connect(actionCancel, SIGNAL(triggered()), this, SLOT(cancelled()));
   105 	connect(this, SIGNAL(aboutToClose()), this, SLOT(backButtonPressed()));
   105 	connect(this, SIGNAL(aboutToClose()), this, SLOT(backButtonPressed()));
   106 	connect(mSettingForm, SIGNAL(activated(const QModelIndex)), this, SLOT(dataItemDisplayed(const QModelIndex)));  
   106 	//connect(mSettingForm, SIGNAL(activated(const QModelIndex)), this, SLOT(dataItemDisplayed(const QModelIndex)));
   107 	show();
   107 	show();
   108 }
   108 }
   109 
   109 
   110 // ---------------------------------------------------------------------------
   110 // ---------------------------------------------------------------------------
   111 
   111 
   179 	mType = model->appendDataFormItem(HbDataFormModelItem::RadioButtonListItem, 
   179 	mType = model->appendDataFormItem(HbDataFormModelItem::RadioButtonListItem, 
   180 									  QString("Type"), 
   180 									  QString("Type"), 
   181 									  mLoadSettings);
   181 									  mLoadSettings);
   182 	mType->setContentWidgetData(QString("items"), CPULOADTYPES);
   182 	mType->setContentWidgetData(QString("items"), CPULOADTYPES);
   183 
   183 
       
   184 	mSettingForm->addConnection(mType,SIGNAL(itemSelected(int)),this,SLOT(selectionChanged(int)));
   184 }
   185 }
   185 
   186 
   186 // ---------------------------------------------------------------------------
   187 // ---------------------------------------------------------------------------
   187 
   188 
   188 void SettingsView::createEatMemoryItems(HbDataFormModel *model, HbDataFormModelItem *parent)
   189 void SettingsView::createEatMemoryItems(HbDataFormModel *model, HbDataFormModelItem *parent)
   225 	mRandomVar = model->appendDataFormItem(HbDataFormModelItem::TextItem, 
   226 	mRandomVar = model->appendDataFormItem(HbDataFormModelItem::TextItem, 
   226 										   QString("Random variance (%)"), 
   227 										   QString("Random variance (%)"), 
   227 										   mLoadSettings);
   228 										   mLoadSettings);
   228 	mRandomVar->setContentWidgetData("maximum" , 100);
   229 	mRandomVar->setContentWidgetData("maximum" , 100);
   229 	mRandomVar->setContentWidgetData("minimum", 0);	
   230 	mRandomVar->setContentWidgetData("minimum", 0);	
       
   231 	
       
   232 	mSettingForm->addConnection(mType,SIGNAL(itemSelected(int)),this,SLOT(selectionChanged(int)));
   230 }	
   233 }	
   231 
   234 
   232 // ---------------------------------------------------------------------------
   235 // ---------------------------------------------------------------------------
   233 
   236 
   234 void SettingsView::createPhoneCallItems(HbDataFormModel *model, HbDataFormModelItem *parent)
   237 void SettingsView::createPhoneCallItems(HbDataFormModel *model, HbDataFormModelItem *parent)