📄 search.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'Search.ui'**** Created: 星期三 六月 27 03:00:57 2007** by: The User Interface Compiler ()**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "Search.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "Search.ui.h"/* * Constructs a Form4 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. */Form4::Form4( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "Form4" ); pushButton66 = new QPushButton( this, "pushButton66" ); pushButton66->setGeometry( QRect( 120, 50, 92, 27 ) ); pushButton65 = new QPushButton( this, "pushButton65" ); pushButton65->setGeometry( QRect( 20, 50, 92, 27 ) ); pushButton67 = new QPushButton( this, "pushButton67" ); pushButton67->setGeometry( QRect( 220, 50, 92, 27 ) ); lineEdit43 = new QLineEdit( this, "lineEdit43" ); lineEdit43->setGeometry( QRect( 20, 10, 290, 21 ) ); lineEdit43->setFrameShape( QLineEdit::LineEditPanel ); lineEdit43->setFrameShadow( QLineEdit::Sunken ); languageChange(); resize( QSize(333, 92).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( pushButton67, SIGNAL( clicked() ), this, SLOT( close() ) ); connect( pushButton65, SIGNAL( clicked() ), this, SLOT( quitBy() ) ); connect( pushButton66, SIGNAL( clicked() ), this, SLOT( quitBy() ) );}/* * Destroys the object and frees any allocated resources */Form4::~Form4(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void Form4::languageChange(){ setCaption( tr( "SEARCH" ) ); pushButton66->setText( tr( "By ID" ) ); pushButton65->setText( tr( "By Name" ) ); pushButton67->setText( tr( "Cancel" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -