[Foo2zjs-commits] r66 - download-gui
white at alioth.debian.org
white at alioth.debian.org
Wed Sep 26 15:04:10 UTC 2007
Author: white
Date: 2007-09-26 15:04:10 +0000 (Wed, 26 Sep 2007)
New Revision: 66
Modified:
download-gui/gui.cpp
download-gui/gui.h
Log:
commit some buggy code to make clear, what I want: iterate over a list and then check, if the checkbox is positive(checked) and then getting a clean QStringList for the QProcess call to getweb
Modified: download-gui/gui.cpp
===================================================================
--- download-gui/gui.cpp 2007-09-26 14:28:57 UTC (rev 65)
+++ download-gui/gui.cpp 2007-09-26 15:04:10 UTC (rev 66)
@@ -85,6 +85,7 @@
connect(exitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
connect(allButton, SIGNAL(stateChanged(int)), this, SLOT(setCheckBoxes(int)));
+ connect(downloadButton, SIGNAL(clicked()), this, SLOT(callGetweb()));
};
void MainWindow::setCheckBoxes(int state)
@@ -140,8 +141,25 @@
// QObject *parent;
-// QString getweb = "/usr/bin/getweb";
-// QProcess *newCall = new QProcess(parent);
+ QString string_buttons = "hp2600Button, hp1600Button";
+
+ QStringList list_buttons;
+
+ list_buttons << string_buttons;
+ qDebug()<<list_buttons;
-// newCall->start(getweb, firmware);
+ QList<QString>::iterator list;
+
+// for(list=list_buttons.begin(); list <list_buttons.end(); ++list) {
+// QCheckBox(list)->setCheckState(Qt::Checked);
+// }
+
+
+/* QString getweb = "/usr/bin/getweb";
+
+ QStringList firmware;
+
+ QProcess *newCall = new QProcess(parent);
+ newCall->start(getweb, firmware);
+*/
};
Modified: download-gui/gui.h
===================================================================
--- download-gui/gui.h 2007-09-26 14:28:57 UTC (rev 65)
+++ download-gui/gui.h 2007-09-26 15:04:10 UTC (rev 66)
@@ -21,6 +21,7 @@
private:
int state;
+
QCheckBox *hp2600Button;
QCheckBox *hp1600Button;
QCheckBox *hp1020Button;
@@ -39,8 +40,8 @@
QCheckBox *samsung300Button;
QCheckBox *xerox6115Button;
QCheckBox *xerox6110Button;
+
-
private slots:
void callGetweb();
void setCheckBoxes(int);
More information about the Foo2zjs-commits
mailing list