#include <GeopsyAboutDialog.h>
Public Member Functions | |
| GeopsyAboutDialog (QWidget *parent=0, Qt::WFlags fl=0) | |
| ~GeopsyAboutDialog () | |
| GeopsyAboutDialog::GeopsyAboutDialog | ( | QWidget * | parent = 0, |
| Qt::WFlags | fl = 0 |
||
| ) |
References QGpCoreTools::tr(), and TRACE.
: Dialog(parent, fl) { TRACE; QVBoxLayout * vboxLayout=new QVBoxLayout(this); //vboxLayout->setResizeMode(QVBoxLayout::Fixed); GeopsyAbout * geopsyAbout=new GeopsyAbout(this); vboxLayout->addWidget(geopsyAbout); QHBoxLayout * hboxLayout=new QHBoxLayout(); hboxLayout->setMargin(0); QSpacerItem * spacerItem=new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); hboxLayout->addItem(spacerItem); QPushButton * pushButton=new QPushButton(this); hboxLayout->addWidget(pushButton); spacerItem=new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); hboxLayout->addItem(spacerItem); vboxLayout->addLayout(hboxLayout); setWindowTitle(tr( "About GEOPSY")); pushButton->setText(tr( "Close" )); connect(pushButton,SIGNAL(clicked()), this, SLOT(close())); }