source: flair-src/trunk/tools/FlairGCS/src/TextEdit.cpp@ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 9 years ago

gcs

File size: 699 bytes
Line 
1#include "TextEdit.h"
2#include "Layout.h"
3#include <QPushButton>
4#include <QGridLayout>
5#include <QTextEdit>
6
7TextEdit::TextEdit(Layout* parent,int row, int col,QString name):XmlWidget(name,"TextEdit",parent)
8{
9
10 visible_widget = new QWidget();
11 visible_widget->setObjectName(name);
12
13 layout = new QGridLayout(visible_widget);
14 clear= new QPushButton("Effacer");
15 text=new QTextEdit();
16
17 layout->addWidget(text,0,0);
18 layout->addWidget(clear,1,0);
19
20 connect(clear, SIGNAL(clicked(bool)),text, SLOT(clear()));
21
22 parent->addWidget(visible_widget,row,col);
23}
24
25TextEdit::~TextEdit()
26{
27
28}
29
30void TextEdit::XmlEvent(QDomElement dom)
31{
32 text->append(dom.attribute("value"));
33}
Note: See TracBrowser for help on using the repository browser.