#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './jabberworkinfobase.ui' ** ** Created: Вск Мар 4 15:40:54 2007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "jabberworkinfobase.h" #include #include #include #include #include #include #include /* * Constructs a JabberWorkInfoBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ JabberWorkInfoBase::JabberWorkInfoBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "JabberWorkInfo" ); JabberWorkInfoLayout = new QGridLayout( this, 1, 1, 11, 6, "JabberWorkInfoLayout"); TextLabel2 = new QLabel( this, "TextLabel2" ); TextLabel2->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); JabberWorkInfoLayout->addWidget( TextLabel2, 1, 0 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); JabberWorkInfoLayout->addWidget( TextLabel1, 0, 0 ); edtTitle = new QLineEdit( this, "edtTitle" ); JabberWorkInfoLayout->addWidget( edtTitle, 2, 1 ); edtDepartment = new QLineEdit( this, "edtDepartment" ); JabberWorkInfoLayout->addWidget( edtDepartment, 1, 1 ); edtRole = new QLineEdit( this, "edtRole" ); JabberWorkInfoLayout->addWidget( edtRole, 3, 1 ); TextLabel4 = new QLabel( this, "TextLabel4" ); TextLabel4->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); JabberWorkInfoLayout->addWidget( TextLabel4, 3, 0 ); TextLabel3 = new QLabel( this, "TextLabel3" ); TextLabel3->setProperty( "alignment", int( QLabel::AlignVCenter | QLabel::AlignRight ) ); JabberWorkInfoLayout->addWidget( TextLabel3, 2, 0 ); edtCompany = new QLineEdit( this, "edtCompany" ); JabberWorkInfoLayout->addWidget( edtCompany, 0, 1 ); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); JabberWorkInfoLayout->addItem( Spacer4, 4, 1 ); languageChange(); resize( QSize(380, 196).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ JabberWorkInfoBase::~JabberWorkInfoBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void JabberWorkInfoBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); TextLabel2->setProperty( "text", i18n( "Department:" ) ); TextLabel1->setProperty( "text", i18n( "Company:" ) ); TextLabel4->setProperty( "text", i18n( "Role:" ) ); TextLabel3->setProperty( "text", i18n( "Position:" ) ); } #include "jabberworkinfobase.moc"