diff --git a/geometrytip.cpp b/geometrytip.cpp index ecbceb061f..e8777bac07 100644 --- a/geometrytip.cpp +++ b/geometrytip.cpp @@ -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); diff --git a/kcmkwin/kwincompositing/main.cpp b/kcmkwin/kwincompositing/main.cpp index 3952fec6b3..f29cf0f67c 100644 --- a/kcmkwin/kwincompositing/main.cpp +++ b/kcmkwin/kwincompositing/main.cpp @@ -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" )); diff --git a/kcmkwin/kwindecoration/buttons.cpp b/kcmkwin/kwindecoration/buttons.cpp index e86a3cff08..5e25a0148a 100644 --- a/kcmkwin/kwindecoration/buttons.cpp +++ b/kcmkwin/kwindecoration/buttons.cpp @@ -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); diff --git a/kcmkwin/kwinoptions/main.cpp b/kcmkwin/kwinoptions/main.cpp index c0a8fafbb3..5ace6e3e6f 100644 --- a/kcmkwin/kwinoptions/main.cpp +++ b/kcmkwin/kwinoptions/main.cpp @@ -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))); } diff --git a/lib/kdecoration.cpp b/lib/kdecoration.cpp index 5085a86f6e..f685ddb0bc 100644 --- a/lib/kdecoration.cpp +++ b/lib/kdecoration.cpp @@ -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 );