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

📄 detailform.cpp

📁 一个linux进程管理器,具有以下功能: 管理系统的进程
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'detailform.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 "detailform.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "detailform.ui.h"/* *  Constructs a detailForm 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. */detailForm::detailForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "detailForm" );    setIcon( QPixmap::fromMimeSource( "process.png" ) );    detailFormLayout = new QGridLayout( this, 1, 1, 11, 6, "detailFormLayout");     spacer10 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    detailFormLayout->addItem( spacer10, 1, 0 );    spacer11 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );    detailFormLayout->addItem( spacer11, 0, 1 );    layout9 = new QHBoxLayout( 0, 0, 6, "layout9");     layout8 = new QVBoxLayout( 0, 0, 6, "layout8");     UIDtextLabel = new QLabel( this, "UIDtextLabel" );    layout8->addWidget( UIDtextLabel );    EUIDtextLabel = new QLabel( this, "EUIDtextLabel" );    layout8->addWidget( EUIDtextLabel );    EffectiveownertextLabel = new QLabel( this, "EffectiveownertextLabel" );    layout8->addWidget( EffectiveownertextLabel );    userTimetextLabel = new QLabel( this, "userTimetextLabel" );    layout8->addWidget( userTimetextLabel );    systemTimetextLabel = new QLabel( this, "systemTimetextLabel" );    layout8->addWidget( systemTimetextLabel );    runTimetextLabel = new QLabel( this, "runTimetextLabel" );    layout8->addWidget( runTimetextLabel );    layout9->addLayout( layout8 );    layout7 = new QVBoxLayout( 0, 0, 6, "layout7");     UIDlineEdit = new QLineEdit( this, "UIDlineEdit" );//    UIDlineEdit->setEnabled( FALSE );    layout7->addWidget( UIDlineEdit );    EUIDlineEdit = new QLineEdit( this, "EUIDlineEdit" ); //   EUIDlineEdit->setEnabled( FALSE );    layout7->addWidget( EUIDlineEdit );    EffectiveownerlineEdit = new QLineEdit( this, "EffectiveownerlineEdit" ); //   EffectiveownerlineEdit->setEnabled( FALSE );    layout7->addWidget( EffectiveownerlineEdit );    userTimelineEdit = new QLineEdit( this, "userTimelineEdit" );  //  userTimelineEdit->setEnabled( FALSE );    layout7->addWidget( userTimelineEdit );    systemTimelineEdit = new QLineEdit( this, "systemTimelineEdit" ); //   systemTimelineEdit->setEnabled( FALSE );    layout7->addWidget( systemTimelineEdit );    runTimelineEdit = new QLineEdit( this, "runTimelineEdit" ); //   runTimelineEdit->setEnabled( FALSE );    layout7->addWidget( runTimelineEdit );    layout9->addLayout( layout7 );    detailFormLayout->addLayout( layout9, 0, 0 );    languageChange();    resize( QSize(401, 295).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( this, SIGNAL( destroyed(QObject*) ), this, SLOT( detailForm_destroyed(QObject*) ) );    // buddies    UIDtextLabel->setBuddy( UIDlineEdit );    EUIDtextLabel->setBuddy( EUIDlineEdit );    EffectiveownertextLabel->setBuddy( EffectiveownerlineEdit );    userTimetextLabel->setBuddy( userTimelineEdit );    systemTimetextLabel->setBuddy( systemTimelineEdit );    runTimetextLabel->setBuddy( runTimelineEdit );}/* *  Destroys the object and frees any allocated resources */detailForm::~detailForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void detailForm::languageChange(){    setCaption( trUtf8( "\x20\xe8\xaf\xa6\xe7\xbb\x86\xe4\xbf\xa1\xe6\x81\xaf\x20" ) );    UIDtextLabel->setText( tr( "UID" ) );    QToolTip::add( UIDtextLabel, trUtf8( "\x75\x69\x64\xe5\x8f\xb7" ) );    EUIDtextLabel->setText( tr( "EUID" ) );    EffectiveownertextLabel->setText( tr( "Effectiveowner" ) );    userTimetextLabel->setText( trUtf8( "\xe7\x94\xa8\xe6\x88\xb7\xe6\x97\xb6\xe9\x97\xb4" ) );    systemTimetextLabel->setText( trUtf8( "\xe7\xb3\xbb\xe7\xbb\x9f\xe6\x97\xb6\xe9\x97\xb4" ) );    runTimetextLabel->setText( trUtf8( "\xe8\xbf\x90\xe8\xa1\x8c\xe6\x97\xb6\xe9\x97\xb4" ) );}

⌨️ 快捷键说明

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