📄 findform.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'findForm.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 "findForm.h"#include <qvariant.h>#include <qpushbutton.h>#include <qframe.h>#include <qcombobox.h>#include <qlabel.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "../findForm.ui.h"/* * Constructs a findForm 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. */findForm::findForm( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "findForm" ); setIcon( QPixmap::fromMimeSource( "main.png" ) ); findFormLayout = new QHBoxLayout( this, 11, 6, "findFormLayout"); frame7 = new QFrame( this, "frame7" ); frame7->setPaletteBackgroundPixmap( QPixmap::fromMimeSource( "20060609095804647.jpg" ) ); frame7->setFrameShape( QFrame::StyledPanel ); frame7->setFrameShadow( QFrame::Raised ); frame7Layout = new QHBoxLayout( frame7, 11, 6, "frame7Layout"); spacer1 = new QSpacerItem( 261, 271, QSizePolicy::Minimum, QSizePolicy::Expanding ); frame7Layout->addItem( spacer1 ); findFormLayout->addWidget( frame7 ); frame8 = new QFrame( this, "frame8" ); frame8->setFrameShape( QFrame::StyledPanel ); frame8->setFrameShadow( QFrame::Raised ); frame8Layout = new QGridLayout( frame8, 1, 1, 11, 6, "frame8Layout"); comboBox3 = new QComboBox( FALSE, frame8, "comboBox3" ); frame8Layout->addWidget( comboBox3, 2, 1 ); textLabel1 = new QLabel( frame8, "textLabel1" ); frame8Layout->addWidget( textLabel1, 0, 0 ); pushButton3 = new QPushButton( frame8, "pushButton3" ); frame8Layout->addWidget( pushButton3, 4, 1 ); lineEdit2 = new QLineEdit( frame8, "lineEdit2" ); frame8Layout->addWidget( lineEdit2, 3, 1 ); textLabel2 = new QLabel( frame8, "textLabel2" ); frame8Layout->addWidget( textLabel2, 1, 0 ); textLabel3 = new QLabel( frame8, "textLabel3" ); frame8Layout->addWidget( textLabel3, 2, 0 ); textLabel4 = new QLabel( frame8, "textLabel4" ); frame8Layout->addWidget( textLabel4, 3, 0 ); comboBox1 = new QComboBox( FALSE, frame8, "comboBox1" ); frame8Layout->addWidget( comboBox1, 0, 1 ); comboBox2 = new QComboBox( FALSE, frame8, "comboBox2" ); frame8Layout->addWidget( comboBox2, 1, 1 ); findFormLayout->addWidget( frame8 ); languageChange(); resize( QSize(618, 320).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( pushButton3, SIGNAL( clicked() ), this, SLOT( findOK() ) ); connect( comboBox1, SIGNAL( activated(const QString&) ), this, SLOT( refresh1(const QString&) ) ); connect( comboBox2, SIGNAL( activated(const QString&) ), this, SLOT( refresh2(const QString&) ) ); // tab order setTabOrder( comboBox1, comboBox2 ); setTabOrder( comboBox2, comboBox3 ); setTabOrder( comboBox3, lineEdit2 ); setTabOrder( lineEdit2, pushButton3 ); init();}/* * Destroys the object and frees any allocated resources */findForm::~findForm(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void findForm::languageChange(){ setCaption( tr( "Find" ) ); textLabel1->setText( tr( "Select the Database" ) ); pushButton3->setText( tr( "OK" ) ); textLabel2->setText( tr( "Select the table" ) ); textLabel3->setText( tr( "Select the Col" ) ); textLabel4->setText( tr( "Input the Key words" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -