From ad390c21d6d4bd97cf29a4926566cb0f24712515 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Wed, 19 Dec 2007 08:43:35 +0000 Subject: [PATCH] Qt3/kde3support free svn path=/trunk/KDE/kdebase/workspace/; revision=750430 --- kcmkwin/kwindesktop/CMakeLists.txt | 2 +- kcmkwin/kwindesktop/desktop.cpp | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/kcmkwin/kwindesktop/CMakeLists.txt b/kcmkwin/kwindesktop/CMakeLists.txt index c75499524f..03e8ba82aa 100644 --- a/kcmkwin/kwindesktop/CMakeLists.txt +++ b/kcmkwin/kwindesktop/CMakeLists.txt @@ -5,7 +5,7 @@ set(kcm_kwindesktop_PART_SRCS desktop.cpp) kde4_add_plugin(kcm_kwindesktop ${kcm_kwindesktop_PART_SRCS}) -target_link_libraries(kcm_kwindesktop ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KUTILS_LIBS} ) +target_link_libraries(kcm_kwindesktop ${KDE4_KDEUI_LIBS} ${KDE4_KUTILS_LIBS} ) install(TARGETS kcm_kwindesktop DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/kcmkwin/kwindesktop/desktop.cpp b/kcmkwin/kwindesktop/desktop.cpp index 838164b7fc..b6f7a181e6 100644 --- a/kcmkwin/kwindesktop/desktop.cpp +++ b/kcmkwin/kwindesktop/desktop.cpp @@ -21,13 +21,13 @@ #include "desktop.h" // Qt -#include #include #include #include #include #include #include +#include #ifdef Q_WS_X11 #include @@ -72,7 +72,7 @@ KDesktopConfig::KDesktopConfig(QWidget *parent, const QVariantList &) layout->setSpacing(KDialog::spacingHint()); // number group - Q3GroupBox *number_group = new Q3GroupBox(this); + QGroupBox *number_group = new QGroupBox(this); QHBoxLayout *lay = new QHBoxLayout(number_group); lay->setMargin(KDialog::marginHint()); @@ -95,16 +95,20 @@ KDesktopConfig::KDesktopConfig(QWidget *parent, const QVariantList &) layout->addWidget(number_group); // name group - Q3GroupBox *name_group = new Q3GroupBox(i18n("Desktop &Names"), this); - - name_group->setColumnLayout(4, Qt::Horizontal); - + QGroupBox *name_group = new QGroupBox(i18n("Desktop &Names"), this); + QVBoxLayout *vhoxlayout = new QVBoxLayout; + name_group->setLayout(vhoxlayout); for(int i = 0; i < (maxDesktops/2); i++) { + QHBoxLayout *hboxLayout = new QHBoxLayout; _nameLabel[i] = new QLabel(i18n("Desktop %1:", i+1), name_group); + hboxLayout->addWidget(_nameLabel[i]); _nameInput[i] = new KLineEdit(name_group); + hboxLayout->addWidget(_nameInput[i]); _nameLabel[i+(maxDesktops/2)] = new QLabel(i18n("Desktop %1:", i+(maxDesktops/2)+1), name_group); + hboxLayout->addWidget(_nameLabel[i+(maxDesktops/2)]); _nameInput[i+(maxDesktops/2)] = new KLineEdit(name_group); + hboxLayout->addWidget(_nameInput[i+(maxDesktops/2)]); _nameLabel[i]->setWhatsThis( i18n( "Here you can enter the name for desktop %1", i+1 ) ); _nameInput[i]->setWhatsThis( i18n( "Here you can enter the name for desktop %1", i+1 ) ); _nameLabel[i+(maxDesktops/2)]->setWhatsThis( i18n( "Here you can enter the name for desktop %1", i+(maxDesktops/2)+1 ) ); @@ -114,6 +118,7 @@ KDesktopConfig::KDesktopConfig(QWidget *parent, const QVariantList &) SLOT( changed() )); connect(_nameInput[i+(maxDesktops/2)], SIGNAL(textChanged(const QString&)), SLOT( changed() )); + vhoxlayout->addLayout(hboxLayout); } for(int i = 1; i < maxDesktops; i++)