--- a/QTfrontend/gamecfgwidget.cpp Mon Mar 16 19:55:56 2009 +0000
+++ b/QTfrontend/gamecfgwidget.cpp Mon Mar 16 20:55:10 2009 +0000
@@ -48,6 +48,7 @@
GameSchemes = new QComboBox(GBoxOptions);
GBoxOptionsLayout->addWidget(GameSchemes, 0, 1);
+ connect(GameSchemes, SIGNAL(currentIndexChanged(int)), this, SLOT(schemeChanged(int)));
QPushButton * goToSchemePage = new QPushButton(GBoxOptions);
goToSchemePage->setText(tr("Edit schemes"));
@@ -240,3 +241,14 @@
{
emit paramChanged("THEME", QStringList(value));
}
+
+void GameCFGWidget::schemeChanged(int value)
+{
+ QStringList sl;
+
+ int size = GameSchemes->model()->columnCount();
+ for(int i = 0; i < size; ++i)
+ sl << schemeData(i).toString();
+
+ emit paramChanged("SCHEME", sl);
+}