From 051a5c05212d03123d08a66f00408ed6fb392aee Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 18 Jul 2007 08:33:20 +0000 Subject: *** empty log message *** --- client/widgets/main.cc | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 client/widgets/main.cc diff --git a/client/widgets/main.cc b/client/widgets/main.cc deleted file mode 100644 index fc4603d..0000000 --- a/client/widgets/main.cc +++ /dev/null @@ -1,42 +0,0 @@ -#include "widget.h" -#include "label.h" -#include "lineedit.h" -#include "pushbutton.h" -#include -#include -#include - -std::vector< Widget* > widgets; - -int main(int argc, char *argv[]) -{ - QApplication app(argc, argv); - - QWidget widget; - QVBoxLayout *layout = new QVBoxLayout(); - - Label *label = new Label(&widget, "Test label:", "center"); - LineEdit *lineedit = new LineEdit(&widget, "[0-9]+"); - widgets.push_back(lineedit); - LineEdit *lineedit2 = new LineEdit(&widget, "[0-9]+"); - widgets.push_back(lineedit2); - PushButton *pushbutton = new PushButton(&widget, "Commit", "committer"); - widgets.push_back(pushbutton); - - layout->addWidget(label); - layout->addWidget(lineedit); - layout->addWidget(lineedit2); - layout->addWidget(pushbutton); - - widget.setLayout(layout); - widget.show(); - - app.exec(); - - std::vector< Widget* >::iterator i=widgets.begin(); - while (i != widgets.end()) { - Widget* w = *i; - printf("%s = %s\n", w->getName().toStdString().c_str(), w->getValue().toStdString().c_str()); - i++; - } -} -- cgit v1.2.3