Use script to add QLatin1String in setObjectName directly

svn path=/trunk/KDE/kdebase/workspace/; revision=1177599
This commit is contained in:
Laurent Montel 2010-09-20 18:18:36 +00:00
parent fa78332a3c
commit e810dbc582
5 changed files with 11 additions and 11 deletions

View file

@ -27,7 +27,7 @@ namespace KWin
GeometryTip::GeometryTip( const XSizeHints* xSizeHints, bool save_under ):
QLabel( 0 )
{
setObjectName( "kwingeometry" );
setObjectName( QLatin1String( "kwingeometry" ) );
setMargin(1);
setIndent(0);
setLineWidth(1);

View file

@ -56,7 +56,7 @@ ConfirmDialog::ConfirmDialog() :
i18n("Confirm Desktop Effects Change"), KTimerDialog::Ok|KTimerDialog::Cancel,
KTimerDialog::Cancel)
{
setObjectName( "mainKTimerDialog" );
setObjectName( QLatin1String( "mainKTimerDialog" ) );
setButtonGuiItem( KDialog::Ok, KGuiItem( i18n( "&Accept Configuration" ), "dialog-ok" ));
setButtonGuiItem( KDialog::Cancel, KGuiItem( i18n( "&Return to Previous Configuration" ), "dialog-cancel" ));

View file

@ -667,7 +667,7 @@ ButtonPositionWidget::ButtonPositionWidget(QWidget *parent)
"between the available item list and the titlebar preview. Similarly, "
"drag items within the titlebar preview to re-position them.") );
m_buttonSource = new ButtonSource(this);
m_buttonSource->setObjectName("button_source");
m_buttonSource->setObjectName( QLatin1String("button_source" ));
layout->addWidget(label);
layout->addWidget(m_dropSite);

View file

@ -77,27 +77,27 @@ KWinOptions::KWinOptions(QWidget *parent, const QVariantList &)
layout->addWidget(tab);
mFocus = new KFocusConfig(false, mConfig, componentData(), this);
mFocus->setObjectName("KWin Focus Config");
mFocus->setObjectName( QLatin1String("KWin Focus Config" ));
tab->addTab(mFocus, i18n("&Focus"));
connect(mFocus, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mTitleBarActions = new KTitleBarActionsConfig(false, mConfig, componentData(), this);
mTitleBarActions->setObjectName("KWin TitleBar Actions");
mTitleBarActions->setObjectName( QLatin1String("KWin TitleBar Actions" ));
tab->addTab(mTitleBarActions, i18n("&Titlebar Actions"));
connect(mTitleBarActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mWindowActions = new KWindowActionsConfig(false, mConfig, componentData(), this);
mWindowActions->setObjectName("KWin Window Actions");
mWindowActions->setObjectName( QLatin1String("KWin Window Actions" ));
tab->addTab(mWindowActions, i18n("Window Actio&ns"));
connect(mWindowActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mMoving = new KMovingConfig(false, mConfig, componentData(), this);
mMoving->setObjectName("KWin Moving");
mMoving->setObjectName( QLatin1String("KWin Moving" ));
tab->addTab(mMoving, i18n("&Moving"));
connect(mMoving, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mAdvanced = new KAdvancedConfig(false, mConfig, componentData(), this);
mAdvanced->setObjectName("KWin Advanced");
mAdvanced->setObjectName( QLatin1String("KWin Advanced" ));
tab->addTab(mAdvanced, i18n("Ad&vanced"));
connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
@ -190,12 +190,12 @@ KActionsOptions::KActionsOptions(QWidget *parent, const QVariantList &)
layout->addWidget(tab);
mTitleBarActions = new KTitleBarActionsConfig(false, mConfig, componentData(), this);
mTitleBarActions->setObjectName("KWin TitleBar Actions");
mTitleBarActions->setObjectName( QLatin1String("KWin TitleBar Actions" ));
tab->addTab(mTitleBarActions, i18n("&Titlebar Actions"));
connect(mTitleBarActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mWindowActions = new KWindowActionsConfig(false, mConfig, componentData(), this);
mWindowActions->setObjectName("KWin Window Actions");
mWindowActions->setObjectName( QLatin1String("KWin Window Actions" ));
tab->addTab(mWindowActions, i18n("Window Actio&ns"));
connect(mWindowActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
}

View file

@ -80,7 +80,7 @@ void KDecoration::createMainWidget( Qt::WFlags flags )
{
// FRAME check flags?
QWidget *w = new QWidget( initialParentWidget(), initialWFlags() | flags );
w->setObjectName("decoration widget");
w->setObjectName( QLatin1String("decoration widget" ));
w->setAttribute( Qt::WA_PaintOnScreen );
if ( options()->showTooltips() )
w->setAttribute( Qt::WA_AlwaysShowToolTips );