📄 setattrib.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'setattrib.ui'**** Created by: The User Interface Compiler ($Id: qt/main.cpp 3.3.8 edited Jan 11 14:47 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "setattrib.h"#include <qvariant.h>#include <qframe.h>#include <qlabel.h>#include <qlineedit.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/* * Constructs a SetAttrib 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. */SetAttrib::SetAttrib( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "SetAttrib" ); SetAttribLayout = new QHBoxLayout( this, 11, 6, "SetAttribLayout"); frame14 = new QFrame( this, "frame14" ); frame14->setFrameShape( QFrame::StyledPanel ); frame14->setFrameShadow( QFrame::Raised ); frame14Layout = new QVBoxLayout( frame14, 11, 6, "frame14Layout"); textLabel1 = new QLabel( frame14, "textLabel1" ); frame14Layout->addWidget( textLabel1 ); lineEdit5 = new QLineEdit( frame14, "lineEdit5" ); frame14Layout->addWidget( lineEdit5 ); frame15 = new QFrame( frame14, "frame15" ); frame15->setFrameShape( QFrame::StyledPanel ); frame15->setFrameShadow( QFrame::Raised ); frame15->setLineWidth( 0 ); pushButton4 = new QPushButton( frame15, "pushButton4" ); pushButton4->setGeometry( QRect( 230, 20, 121, 31 ) ); frame14Layout->addWidget( frame15 ); SetAttribLayout->addWidget( frame14 ); languageChange(); resize( QSize(405, 209).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished );}/* * Destroys the object and frees any allocated resources */SetAttrib::~SetAttrib(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void SetAttrib::languageChange(){ setCaption( tr( "Set the Attribute" ) ); textLabel1->setText( tr( "Now You should set the attributes of the new table\n""You should input as follow sample:\n""ID,name,age\n""each attribute should separated by the comma--' , '" ) ); pushButton4->setText( tr( "OK" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -