00001 #include <QtGui> 00002 #include "ajuda.h" 00003 00004 // if we include <QtGui> there is no need to include every class used: <QString>, <QFileDialog>,... 00005 00006 Ajuda::Ajuda(QWidget *parent, Qt::WFlags f) : QWidget(parent, f) 00007 { 00008 setupUi(this); // this sets up GUI 00009 setWindowFlags(f & (~Qt::WindowMaximizeButtonHint)); 00010 00011 /* Conecta botao */ 00012 QObject::connect(buttonOk, SIGNAL(clicked()), this, SLOT(close())); 00013 } 00014