[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeutils/khexedit
From: Laurent Montel <montel () kde ! org>
Date: 2006-11-27 15:32:27
Message-ID: 1164641547.828754.18448.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 608438 by mlaurent:
Not necessary to create a QString for i18n and after add it to QWidget
M +6 -13 exportdialog.cc
--- trunk/KDE/kdeutils/khexedit/exportdialog.cc #608437:608438
@@ -156,7 +156,6 @@
void CExportDialog::setupDestinationPage( void )
{
- QString text;
QWidget *page = mDestinationPage->widget();
QVBoxLayout *topLayout = new QVBoxLayout( page );
@@ -175,8 +174,7 @@
connect( mDestination.formatCombo, SIGNAL(activated(int)),
SLOT(formatChanged(int)) );
- text = i18n("&Format:");
- QLabel *label = new QLabel( text, page );
+ QLabel *label = new QLabel( i18n("&Format:"), page );
label->setBuddy( mDestination.formatCombo );
topLayout->addWidget( label );
topLayout->addWidget( mDestination.formatCombo );
@@ -184,12 +182,10 @@
QHBoxLayout *hbox = new QHBoxLayout();
topLayout->addLayout( hbox );
- text = i18n("&Destination:");
- label = new QLabel( text, page );
+ label = new QLabel( i18n("&Destination:"), page );
hbox->addWidget( label );
- text = i18n("(Package folder)");
- mDestination.fileExtraLabel = new QLabel( text, page );
+ mDestination.fileExtraLabel = new QLabel( i18n("(Package folder)"), page );
hbox->addWidget( mDestination.fileExtraLabel, 10, Qt::AlignLeft|Qt::AlignVCenter \
);
hbox = new QHBoxLayout();
@@ -198,8 +194,7 @@
mDestination.fileInput = new QLineEdit( page );
hbox->addWidget( mDestination.fileInput );
connect(mDestination.fileInput, SIGNAL(textChanged ( const QString & \
)),this,SLOT(destinationChanged(const QString &)));
- text = i18n("Choose...");
- QPushButton *browseButton = new QPushButton( text, page );
+ QPushButton *browseButton = new QPushButton( i18n("Choose..."), page );
hbox->addWidget( browseButton );
connect( browseButton, SIGNAL(clicked()), SLOT(browserClicked()) );
mDestination.fileInput->setMinimumWidth( fontMetrics().maxWidth()*15 );
@@ -238,15 +233,13 @@
vbox->addLayout( gbox );
mDestination.fromInput = new QLineEdit( group );
- text = i18n("&From offset:");
- mDestination.fromLabel = new QLabel( text, group );
+ mDestination.fromLabel = new QLabel( i18n("&From offset:"), group );
label->setBuddy( mDestination.fromInput );
gbox->addWidget( mDestination.fromLabel, 0, 0 );
gbox->addWidget( mDestination.fromInput, 0, 1 );
mDestination.toInput = new QLineEdit( group );
- text = i18n("&To offset:");
- mDestination.toLabel = new QLabel( text, group );
+ mDestination.toLabel = new QLabel( i18n("&To offset:"), group );
label->setBuddy( mDestination.toInput );
gbox->addWidget( mDestination.toLabel, 1, 0 );
gbox->addWidget( mDestination.toInput, 1, 1 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic