/**************************************************************************** ** Form implementation generated from reading ui file 'toaboutui.ui' ** ** Created: Mon Feb 20 12:46:37 2006 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "toaboutui.h" #include #include #include #include #include #include /* * Constructs a toAboutUI as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ toAboutUI::toAboutUI( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "toAboutUI" ); toAboutUILayout = new QGridLayout( this, 1, 1, 11, 6, "toAboutUILayout"); TextView = new QTextView( this, "TextView" ); TextView->setTextFormat( QTextView::RichText ); toAboutUILayout->addMultiCellWidget( TextView, 0, 0, 0, 3 ); OkButton = new QPushButton( this, "OkButton" ); OkButton->setDefault( TRUE ); toAboutUILayout->addWidget( OkButton, 1, 2 ); CancelButton = new QPushButton( this, "CancelButton" ); toAboutUILayout->addWidget( CancelButton, 1, 3 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); toAboutUILayout->addItem( Spacer1, 1, 1 ); languageChange(); resize( QSize(475, 400).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( CancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); // tab order setTabOrder( TextView, OkButton ); setTabOrder( OkButton, CancelButton ); } /* * Destroys the object and frees any allocated resources */ toAboutUI::~toAboutUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toAboutUI::languageChange() { setCaption( tr( "toAboutUI" ) ); OkButton->setText( tr( "&Ok" ) ); CancelButton->setText( tr( "Cancel" ) ); }