hellobase.cpp

来自「Qtopia链接Sqlite3数据库 Qtopia 2.2.0 Sqlite」· C++ 代码 · 共 72 行

CPP
72
字号
/****************************************************************************
** Form implementation generated from reading ui file 'helloBase.ui'
**
** Created: Mon Mar 5 14:25:02 2007
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "helloBase.h"

#include <qcombobox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a HelloBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 */
HelloBase::HelloBase( QWidget* parent,  const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "HelloBase" );
    resize( 216, 225 ); 
    setCaption( tr( "Login" ) );

    TextLabel1 = new QLabel( this, "TextLabel1" );
    TextLabel1->setGeometry( QRect( 20, 70, 61, 20 ) ); 
    TextLabel1->setText( tr( "Name:" ) );

    TextLabel2 = new QLabel( this, "TextLabel2" );
    TextLabel2->setGeometry( QRect( 20, 110, 61, 20 ) ); 
    TextLabel2->setText( tr( "Password:" ) );

    TextLabel3 = new QLabel( this, "TextLabel3" );
    TextLabel3->setGeometry( QRect( 20, 30, 61, 20 ) ); 
    TextLabel3->setText( tr( "Type:" ) );

    ComboBox1 = new QComboBox( FALSE, this, "ComboBox1" );
    ComboBox1->setGeometry( QRect( 80, 30, 110, 27 ) ); 

    Cancel = new QPushButton( this, "Cancel" );
    Cancel->setGeometry( QRect( 20, 170, 80, 32 ) ); 
    Cancel->setText( tr( "Cancel" ) );

    OK = new QPushButton( this, "OK" );
    OK->setGeometry( QRect( 110, 170, 80, 32 ) ); 
    OK->setText( tr( "OK" ) );

    LineEdit1 = new QLineEdit( this, "LineEdit1" );
    LineEdit1->setGeometry( QRect( 80, 70, 110, 23 ) ); 
    QWhatsThis::add(  LineEdit1, tr( "Name" ) );

    LineEdit2 = new QLineEdit( this, "LineEdit2" );
    LineEdit2->setGeometry( QRect( 80, 110, 110, 23 ) ); 
    QWhatsThis::add(  LineEdit2, tr( "Password" ) );
}

/*  
 *  Destroys the object and frees any allocated resources
 */
HelloBase::~HelloBase()
{
    // no need to delete child widgets, Qt does it all for us
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?