📄 formsend.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'formsend.ui'**** Created: 四 1月 18 16:26:30 2007** 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 "formsend.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/* * Constructs a FormSend 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. */FormSend::FormSend( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "FormSend" ); setMinimumSize( QSize( 320, 240 ) ); setMaximumSize( QSize( 320, 240 ) ); pbSend = new QPushButton( this, "pbSend" ); pbSend->setGeometry( QRect( 40, 110, 93, 31 ) ); pbCancel = new QPushButton( this, "pbCancel" ); pbCancel->setGeometry( QRect( 180, 110, 93, 31 ) ); languageChange(); resize( QSize(320, 240).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( pbSend, SIGNAL( clicked() ), this, SLOT( slotSend() ) ); connect( pbCancel, SIGNAL( clicked() ), this, SLOT( slotCancel() ) );}/* * Destroys the object and frees any allocated resources */FormSend::~FormSend(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void FormSend::languageChange(){ setCaption( tr( "talkback sender" ) ); pbSend->setText( tr( "&Send" ) ); pbCancel->setText( tr( "&Cancel" ) );}void FormSend::slotSend(){ qWarning( "FormSend::slotSend(): Not implemented yet" );}void FormSend::slotCancel(){ qWarning( "FormSend::slotCancel(): Not implemented yet" );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -