#include "simapi.h" /**************************************************************************** ** Form implementation generated from reading ui file './jidsearchbase.ui' ** ** Created: Вск Мар 4 15:40:55 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 "jidsearchbase.h" #include #include #include #include #include #include #include #include "jabbersearch.h" /* * Constructs a JIDSearchBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ JIDSearchBase::JIDSearchBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "JIDSearch" ); JIDSearchLayout = new QVBoxLayout( this, 0, 6, "JIDSearchLayout"); grpSearch = new QGroupBox( this, "grpSearch" ); grpSearch->setColumnLayout(0, Qt::Vertical ); grpSearch->layout()->setSpacing( 6 ); grpSearch->layout()->setMargin( 11 ); grpSearchLayout = new QVBoxLayout( grpSearch->layout() ); grpSearchLayout->setAlignment( Qt::AlignTop ); jidSearch = new JIDJabberSearch( grpSearch, "jidSearch" ); jidSearch->setProperty( "sizePolicy", QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)1, 0, 0, jidSearch->sizePolicy().hasHeightForWidth() ) ); grpSearchLayout->addWidget( jidSearch ); JIDSearchLayout->addWidget( grpSearch ); btnAdvanced = new QPushButton( this, "btnAdvanced" ); JIDSearchLayout->addWidget( btnAdvanced ); Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); JIDSearchLayout->addItem( Spacer2 ); btnBrowser = new QPushButton( this, "btnBrowser" ); JIDSearchLayout->addWidget( btnBrowser ); languageChange(); resize( QSize(184, 355).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // tab order setTabOrder( btnAdvanced, btnBrowser ); } /* * Destroys the object and frees any allocated resources */ JIDSearchBase::~JIDSearchBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void JIDSearchBase::languageChange() { setProperty( "caption", i18n( "Form1" ) ); grpSearch->setProperty( "title", QString::null ); btnAdvanced->setProperty( "text", i18n( "&Advanced" ) ); btnBrowser->setProperty( "text", i18n( "Jabber &browser" ) ); } #include "jidsearchbase.moc"