different patch names in different regions
[engrid.git] / src / dialoglineedit / test.cpp
blobb5300509ea97412993f9472e326a31039397a7f0
1 #include <QApplication>
2 #include <QPushButton>
4 #include <QHBoxLayout>
5 #include <QFormLayout>
6 #include <QtDebug>
7 #include <QMainWindow>
9 #include "dialoglineedit.h"
11 int main(int argc, char *argv[])
13 QApplication app(argc, argv);
15 // QMainWindow window;
16 QWidget window;
18 QFormLayout* layout = new QFormLayout();
19 /* layout->setSpacing(-1);
20 this->setContentsMargins(0,0,0,0);*/
21 window.setLayout(layout);
23 /////////////////////
24 //my widget
25 /////////////////////
27 DialogLineEdit* hello = new DialogLineEdit();
28 hello->setMode(true);
29 hello->setCaption("YOYOYOOYOYOYY");
30 layout->addWidget(hello);
32 DialogLineEdit* hello2 = new DialogLineEdit();
33 hello2->setMode(false);
34 hello2->setCaption("YOYOYOOYOYOYY");
35 layout->addWidget(hello2);
37 /////////////////////
38 // a normal line edit
39 /////////////////////
41 QLineEdit* hello = new QLineEdit();
43 layout->addWidget(hello);
45 QLineEdit* hello2 = new QLineEdit();
46 layout->addWidget(hello2);
48 /////////////////////
50 // DialogLineEdit helloo(&window);
51 // window.addWidget(hello);
53 // QPushButton quit("Quit", &window);
54 // quit.setFont(QFont("Times", 18, QFont::Bold));
55 // helloo.setGeometry(10, 40, 180, 40);
56 // QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
58 window.show();
59 return app.exec();