From 4ae6c8c38219d6e5b1e140cfa93ca7db3264e154 Mon Sep 17 00:00:00 2001 From: Rivo Laks Date: Sat, 22 Sep 2007 12:00:23 +0000 Subject: [PATCH] - Fix memory leak with QLabels - Translate all the labels svn path=/trunk/KDE/kdebase/workspace/; revision=715555 --- effects/presentwindows_config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/presentwindows_config.cpp b/effects/presentwindows_config.cpp index 78b3569750..5a69b3ece8 100644 --- a/effects/presentwindows_config.cpp +++ b/effects/presentwindows_config.cpp @@ -33,16 +33,16 @@ PresentWindowsEffectConfig::PresentWindowsEffectConfig(QWidget* parent, const QV QGridLayout* layout = new QGridLayout(this); layout->addWidget(new QLabel(i18n("Activate when cursor is at a specific edge " - "or corner of the screen:")), 0, 0, 1, 3); + "or corner of the screen:"), this), 0, 0, 1, 3); layout->addItem(new QSpacerItem(20, 20, QSizePolicy::Fixed), 1, 0, 2, 1); - layout->addWidget(new QLabel("for windows on current desktop: "), 1, 1); + layout->addWidget(new QLabel(i18n("for windows on current desktop: "), this), 1, 1); mActivateCombo = new QComboBox; addItems(mActivateCombo); connect(mActivateCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(changed())); layout->addWidget(mActivateCombo, 1, 2); - layout->addWidget(new QLabel("for windows all desktop: "), 2, 1); + layout->addWidget(new QLabel(i18n("for windows all desktop: "), this), 2, 1); mActivateAllCombo = new QComboBox; addItems(mActivateAllCombo); connect(mActivateAllCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(changed()));