From f97382077f7ea31852507dfc0f72fcc8ccd70111 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 10 Jan 2008 13:18:01 +0000 Subject: [PATCH] Qt3support-- svn path=/trunk/KDE/kdebase/workspace/; revision=759410 --- kcmkwin/kwinoptions/windows.cpp | 10 ++++++---- kcmkwin/kwinoptions/windows.h | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/kcmkwin/kwinoptions/windows.cpp b/kcmkwin/kwinoptions/windows.cpp index 8a96c4c2d5..7b7190b1cd 100644 --- a/kcmkwin/kwinoptions/windows.cpp +++ b/kcmkwin/kwinoptions/windows.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include #include @@ -124,12 +125,11 @@ KFocusConfig::KFocusConfig (bool _standAlone, KConfig *_config, const KComponent //lay->addWidget(plcBox); // focus policy - fcsBox = new Q3ButtonGroup(i18n("Focus"),this); - fcsBox->setColumnLayout( 0, Qt::Horizontal ); + fcsBox = new QGroupBox(i18n("Focus"),this); QBoxLayout *fLay = new QVBoxLayout(); fLay->setSpacing(KDialog::spacingHint()); - fcsBox->layout()->addItem( fLay ); + fcsBox->setLayout( fLay ); QBoxLayout *cLay = new QHBoxLayout(); fLay->addLayout( cLay ); @@ -288,7 +288,9 @@ KFocusConfig::KFocusConfig (bool _standAlone, KConfig *_config, const KComponent // Any changes goes to slotChanged() connect(focusCombo, SIGNAL(activated(int)), SLOT(changed())); - connect(fcsBox, SIGNAL(clicked(int)), SLOT(changed())); + connect(autoRaiseOn,SIGNAL(clicked()), SLOT(changed())); + connect(delayFocusOn, SIGNAL(clicked()), SLOT(changed())); + connect(clickRaiseOn, SIGNAL(clicked()), SLOT(changed())); connect(autoRaise, SIGNAL(valueChanged(int)), SLOT(changed())); connect(delayFocus, SIGNAL(valueChanged(int)), SLOT(changed())); connect(separateScreenFocus, SIGNAL(clicked()), SLOT(changed())); diff --git a/kcmkwin/kwinoptions/windows.h b/kcmkwin/kwinoptions/windows.h index 5c3f61b182..435b5d1c80 100644 --- a/kcmkwin/kwinoptions/windows.h +++ b/kcmkwin/kwinoptions/windows.h @@ -109,7 +109,7 @@ private: void setRollOverDesktops(bool); void setShowPopupinfo(bool); - Q3ButtonGroup *fcsBox; + QGroupBox *fcsBox; QComboBox *focusCombo; QCheckBox *autoRaiseOn; QCheckBox *delayFocusOn;