⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 quarydialog.cpp

📁 使用 C++ 写的人事管理系统
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file '.\quarydialog.ui'**** Created: 星期三 十二月 31 15:42:09 2003**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "quarydialog.h"#include <qvariant.h>#include <qbuttongroup.h>#include <qlineedit.h>#include <qcombobox.h>#include <qpushbutton.h>#include <qcheckbox.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include "quarydialog.ui.h"/*  *  Constructs a QuaryDialogBase 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. */QuaryDialogBase::QuaryDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "QuaryDialogBase" );    setSizeGripEnabled( TRUE );    buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );    buttonGroup1->setGeometry( QRect( 20, 40, 470, 60 ) );    usertext = new QLineEdit( buttonGroup1, "usertext" );    usertext->setGeometry( QRect( 290, 20, 160, 21 ) );    comp = new QComboBox( FALSE, buttonGroup1, "comp" );    comp->setGeometry( QRect( 200, 20, 91, 21 ) );    stat = new QComboBox( FALSE, buttonGroup1, "stat" );    stat->setGeometry( QRect( 20, 20, 180, 20 ) );    QWidget* privateLayoutWidget = new QWidget( this, "Layout1" );    privateLayoutWidget->setGeometry( QRect( 20, 120, 470, 33 ) );    Layout1 = new QHBoxLayout( privateLayoutWidget, 0, 6, "Layout1");     buttonHelp = new QPushButton( privateLayoutWidget, "buttonHelp" );    buttonHelp->setAutoDefault( TRUE );    Layout1->addWidget( buttonHelp );    QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    Layout1->addItem( spacer );    buttonOk = new QPushButton( privateLayoutWidget, "buttonOk" );    buttonOk->setAutoDefault( TRUE );    buttonOk->setDefault( TRUE );    Layout1->addWidget( buttonOk );    buttonCancel = new QPushButton( privateLayoutWidget, "buttonCancel" );    buttonCancel->setAutoDefault( TRUE );    Layout1->addWidget( buttonCancel );    QuaryCustom = new QCheckBox( this, "QuaryCustom" );    QuaryCustom->setGeometry( QRect( 30, 10, 120, 21 ) );    QuaryCustom->setChecked( TRUE );    languageChange();    resize( QSize(513, 177).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );    connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );    connect( buttonHelp, SIGNAL( clicked() ), this, SLOT( buttonHelp_clicked() ) );    connect( QuaryCustom, SIGNAL( toggled(bool) ), buttonGroup1, SLOT( setEnabled(bool) ) );}/* *  Destroys the object and frees any allocated resources */QuaryDialogBase::~QuaryDialogBase(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void QuaryDialogBase::languageChange(){    setCaption( tr( "QuaryDialog" ) );    buttonGroup1->setTitle( QString::null );    comp->clear();    comp->insertItem( tr( "=" ) );    comp->insertItem( tr( "like" ) );    comp->insertItem( tr( ">" ) );    comp->insertItem( tr( "<" ) );    comp->insertItem( tr( ">=" ) );    comp->insertItem( tr( "<=" ) );    stat->clear();    stat->insertItem( trUtf8( "姓名" ) );    stat->insertItem( trUtf8( "性别" ) );    stat->insertItem( trUtf8( "年龄" ) );    stat->insertItem( trUtf8( "工作单位" ) );    stat->insertItem( trUtf8( "职务" ) );    stat->insertItem( trUtf8( "电话" ) );    stat->insertItem( trUtf8( "住址" ) );    buttonHelp->setText( trUtf8( "帮助(&H)" ) );    buttonOk->setCaption( QString::null );    buttonOk->setText( trUtf8( "确定(&O)" ) );    buttonCancel->setText( trUtf8( "取消(&C)" ) );    QuaryCustom->setText( trUtf8( "自定义查询(&A)" ) );}

⌨️ 快捷键说明

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