📄 phonetransferlogodlg.cpp
字号:
#include <klocale.h>/****************************************************************************** Form implementation generated from reading ui file './phonetransferlogodlg.ui'**** Created: Mon Feb 19 21:40:27 2001** by: The User Interface Compiler (uic)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "phonetransferlogodlg.h"#include <qgroupbox.h>#include <qlabel.h>#include <qpushbutton.h>#include "phonecontrol.h"#include <qlayout.h>#include <qvariant.h>#include <qtooltip.h>#include <qwhatsthis.h>/* * Constructs a PhoneTransferLogoDlg which is a child of 'parent', with the * name 'name'.' */PhoneTransferLogoDlg::PhoneTransferLogoDlg( QWidget* parent, const char* name ) : PhoneControl( parent, name ){ if ( !name ) setName( "PhoneTransferLogoDlg" ); resize( 400, 301 ); setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, sizePolicy().hasHeightForWidth() ) ); setMinimumSize( QSize( 400, 300 ) ); setCaption( i18n( "Transfer Logo To Phone" ) ); PhoneTransferLogoDlgLayout = new QHBoxLayout( this ); PhoneTransferLogoDlgLayout->setSpacing( 6 ); PhoneTransferLogoDlgLayout->setMargin( 0 ); fileBrowserContainer = new QGroupBox( this, "fileBrowserContainer" ); fileBrowserContainer->setTitle( i18n( "File Browser" ) ); fileBrowserContainer->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)5, fileBrowserContainer->sizePolicy().hasHeightForWidth() ) ); fileBrowserContainer->setAcceptDrops( FALSE ); PhoneTransferLogoDlgLayout->addWidget( fileBrowserContainer ); GroupBox6 = new QGroupBox( this, "GroupBox6" ); GroupBox6->setTitle( i18n( "Logo" ) ); GroupBox6->setColumnLayout(0, Qt::Vertical ); GroupBox6->layout()->setSpacing( 0 ); GroupBox6->layout()->setMargin( 0 ); GroupBox6Layout = new QVBoxLayout( GroupBox6->layout() ); GroupBox6Layout->setAlignment( Qt::AlignTop ); GroupBox6Layout->setSpacing( 6 ); GroupBox6Layout->setMargin( 11 ); TextLabel1 = new QLabel( GroupBox6, "TextLabel1" ); TextLabel1->setText( i18n( "Preview" ) ); TextLabel1->setFrameShape( QLabel::Box ); TextLabel1->setFrameShadow( QLabel::Sunken ); TextLabel1->setAlignment( int( QLabel::AlignCenter ) ); GroupBox6Layout->addWidget( TextLabel1 ); logoPreview = new QLabel( GroupBox6, "logoPreview" ); logoPreview->setScaledContents( TRUE ); logoPreview->setFrameShape( QLabel::Box ); logoPreview->setFrameShadow( QLabel::Raised ); logoPreview->setMinimumSize( QSize( 100, 40 ) ); logoPreview->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, logoPreview->sizePolicy().hasHeightForWidth() ) ); GroupBox6Layout->addWidget( logoPreview ); transferButton = new QPushButton( GroupBox6, "transferButton" ); transferButton->setText( i18n( "Transfer" ) ); GroupBox6Layout->addWidget( transferButton ); QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); GroupBox6Layout->addItem( spacer ); TextLabel2 = new QLabel( GroupBox6, "TextLabel2" ); TextLabel2->setText( i18n( "Current Logo" ) ); TextLabel2->setFrameShape( QLabel::Box ); TextLabel2->setFrameShadow( QLabel::Sunken ); TextLabel2->setAlignment( int( QLabel::AlignCenter ) ); GroupBox6Layout->addWidget( TextLabel2 ); currentLogo = new QLabel( GroupBox6, "currentLogo" ); currentLogo->setScaledContents( TRUE ); currentLogo->setFrameShape( QLabel::Box ); currentLogo->setFrameShadow( QLabel::Raised ); currentLogo->setMinimumSize( QSize( 100, 40 ) ); currentLogo->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, currentLogo->sizePolicy().hasHeightForWidth() ) ); GroupBox6Layout->addWidget( currentLogo ); reloadButton = new QPushButton( GroupBox6, "reloadButton" ); reloadButton->setText( i18n( "Reload" ) ); GroupBox6Layout->addWidget( reloadButton ); PhoneTransferLogoDlgLayout->addWidget( GroupBox6 ); // signals and slots connections}/* * Destroys the object and frees any allocated resources */PhoneTransferLogoDlg::~PhoneTransferLogoDlg(){ // no need to delete child widgets, Qt does it all for us}void PhoneTransferLogoDlg::updateLogo(){ qWarning( "PhoneTransferLogoDlg::updateLogo(): Not implemented yet!" );}#include "phonetransferlogodlg.moc"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -