[Foo2zjs-commits] r70 - hannah

white at alioth.debian.org white at alioth.debian.org
Thu Sep 27 16:22:33 UTC 2007


Author: white
Date: 2007-09-27 16:22:32 +0000 (Thu, 27 Sep 2007)
New Revision: 70

Modified:
   hannah/gui.cpp
   hannah/gui.h
Log:
Change name and add final variable for list of arguments

Modified: hannah/gui.cpp
===================================================================
--- hannah/gui.cpp	2007-09-27 16:04:19 UTC (rev 69)
+++ hannah/gui.cpp	2007-09-27 16:22:32 UTC (rev 70)
@@ -161,13 +161,15 @@
 {
 	QAbstractButton *a;
 	int count = 0;
-	QStringList arguments;
-	arguments << "hp2600" << "hp1600" << "hp1020" << "hp1018" << "hp1005" << "hp1000" << "minolta2530" << "minolta2490" << "minolta2480" << "minolta2430" << "minolta2300" << "minolta2200" << "minoltapro" << "samsung3160" << "samsung600" << "samsung300" << "xerox6115" << "xerox6110";
-	
+	QStringList current_list;
+	current_list << "hp2600" << "hp1600" << "hp1020" << "hp1018" << "hp1005" << "hp1000" << "minolta2530" << "minolta2490" << "minolta2480" << "minolta2430" << "minolta2300" << "minolta2200" << "minoltapro" << "samsung3160" << "samsung600" << "samsung300" << "xerox6115" << "xerox6110";
+
 	foreach( a, buttonGroup->buttons() ) {
 		if ( a->isChecked() ) {
-			qDebug()<<arguments.at(count);
+			arguments << current_list.at(count);
 		}
 		count++;
 	}
+	// Make sure to empty arguments, after it is used for the script
+	qDebug()<<arguments;
 };

Modified: hannah/gui.h
===================================================================
--- hannah/gui.h	2007-09-27 16:04:19 UTC (rev 69)
+++ hannah/gui.h	2007-09-27 16:22:32 UTC (rev 70)
@@ -44,6 +44,7 @@
 	QCheckBox *xerox6110Button;
 	QButtonGroup *buttonGroup;
 
+	QStringList arguments;
 
 private slots:
 	void callGetweb();




More information about the Foo2zjs-commits mailing list