📄 childprocessform.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'childprocessform.ui'**** Created by: The User Interface Compiler ($Id: qt/main.cpp 3.3.6 edited Aug 31 2005 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "childprocessform.h"#include <qvariant.h>#include <qlabel.h>#include <qheader.h>#include <qlistview.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/* * Constructs a childProcessForm 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. */childProcessForm::childProcessForm( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "childProcessForm" ); setIcon( QPixmap::fromMimeSource( "process.png" ) ); childProcessFormLayout = new QGridLayout( this, 1, 1, 11, 6, "childProcessFormLayout"); spacer14 = new QSpacerItem( 20, 320, QSizePolicy::Minimum, QSizePolicy::Expanding ); childProcessFormLayout->addMultiCell( spacer14, 0, 1, 1, 1 ); spacer13 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); childProcessFormLayout->addItem( spacer13, 2, 0 ); layout12 = new QHBoxLayout( 0, 0, 6, "layout12"); textLabel8 = new QLabel( this, "textLabel8" ); layout12->addWidget( textLabel8 ); childProcesstextLabel = new QLabel( this, "childProcesstextLabel" ); layout12->addWidget( childProcesstextLabel ); childProcessFormLayout->addLayout( layout12, 0, 0 ); layout18 = new QVBoxLayout( 0, 0, 6, "layout18"); textLabel9 = new QLabel( this, "textLabel9" ); layout18->addWidget( textLabel9 ); childProcesslistView = new QListView( this, "childProcesslistView" ); childProcesslistView->addColumn( tr( "PID " ) ); childProcesslistView->addColumn( trUtf8( "\xe8\xbf\x9b\xe7\xa8\x8b\xe5\x90\x8d\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20\x20\x20" ) ); childProcesslistView->setFrameShape( QListView::LineEditPanel ); childProcesslistView->setAllColumnsShowFocus( TRUE ); childProcesslistView->setShowSortIndicator( TRUE ); layout18->addWidget( childProcesslistView ); childProcesslistView->setSorting(-1,false); childProcessFormLayout->addLayout( layout18, 1, 0 ); languageChange(); resize( QSize(396, 392).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished );}/* * Destroys the object and frees any allocated resources */childProcessForm::~childProcessForm(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void childProcessForm::languageChange(){ setCaption( trUtf8( "\xe5\xad\x90\xe8\xbf\x9b\xe7\xa8\x8b" ) ); QToolTip::add( this, trUtf8( "\x20\xe5\xad\x90\xe8\xbf\x9b\xe7\xa8\x8b\x20" ) ); textLabel8->setText( trUtf8( "\xe7\x88\xb6\xe8\xbf\x9b\xe7\xa8\x8b\xef\xbc\x9a" ) ); childProcesstextLabel->setText( tr( "textLabel7" ) ); textLabel9->setText( trUtf8( "\xe5\x85\xb6\xe4\xb8\x8b\xe5\xad\x90\xe8\xbf\x9b\xe7\xa8\x8b\x3a\x20" ) ); childProcesslistView->header()->setLabel( 0, tr( "PID " ) ); childProcesslistView->header()->setLabel( 1, trUtf8( "\xe8\xbf\x9b\xe7\xa8\x8b\xe5\x90\x8d\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" "\x20\x20\x20\x20" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -