loadgen/ui/hb/src/settingsview.cpp
changeset 53 819e59dfc032
parent 17 4f2773374eff
--- a/loadgen/ui/hb/src/settingsview.cpp	Fri Sep 17 14:22:55 2010 +0300
+++ b/loadgen/ui/hb/src/settingsview.cpp	Mon Oct 04 10:09:02 2010 +0300
@@ -103,7 +103,7 @@
     connect(actionOk, SIGNAL(triggered()), this, SLOT(okExit()));
 	connect(actionCancel, SIGNAL(triggered()), this, SLOT(cancelled()));
 	connect(this, SIGNAL(aboutToClose()), this, SLOT(backButtonPressed()));
-	connect(mSettingForm, SIGNAL(activated(const QModelIndex)), this, SLOT(dataItemDisplayed(const QModelIndex)));  
+	//connect(mSettingForm, SIGNAL(activated(const QModelIndex)), this, SLOT(dataItemDisplayed(const QModelIndex)));
 	show();
 }
 
@@ -181,6 +181,7 @@
 									  mLoadSettings);
 	mType->setContentWidgetData(QString("items"), CPULOADTYPES);
 
+	mSettingForm->addConnection(mType,SIGNAL(itemSelected(int)),this,SLOT(selectionChanged(int)));
 }
 
 // ---------------------------------------------------------------------------
@@ -227,6 +228,8 @@
 										   mLoadSettings);
 	mRandomVar->setContentWidgetData("maximum" , 100);
 	mRandomVar->setContentWidgetData("minimum", 0);	
+	
+	mSettingForm->addConnection(mType,SIGNAL(itemSelected(int)),this,SLOT(selectionChanged(int)));
 }	
 
 // ---------------------------------------------------------------------------